|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.security.struct.JGroup
public class JGroup
This class represents all the roles of a principal (group of principals). These roles are added to the Subject
Field Summary | |
---|---|
private java.lang.String |
groupName
Name of this group. |
private java.util.Vector<java.security.Principal> |
members
Members of this group. |
private static long |
serialVersionUID
UID for serialization. |
Constructor Summary | |
---|---|
JGroup(java.lang.String groupName)
Build a new group with the following name. |
Method Summary | |
---|---|
boolean |
addMember(java.security.Principal user)
Adds the specified member to the group. |
boolean |
equals(java.lang.Object another)
Compares this principal to the specified object. |
java.lang.String |
getName()
Returns the name of this principal. |
int |
hashCode()
Returns a hashcode for this principal. |
boolean |
isMember(java.security.Principal member)
Returns true if the passed principal is a member of the group. |
java.util.Enumeration<? extends java.security.Principal> |
members()
Returns an enumeration of the members in the group. |
boolean |
removeMember(java.security.Principal user)
Removes the specified member from the group. |
java.lang.String |
toString()
Returns a string representation of this principal. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private java.lang.String groupName
private java.util.Vector<java.security.Principal> members
Constructor Detail |
---|
public JGroup(java.lang.String groupName)
groupName
- name of the groupMethod Detail |
---|
public boolean equals(java.lang.Object another)
equals
in interface java.security.Principal
equals
in class java.lang.Object
another
- principal to compare with.
public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
public java.lang.String getName()
getName
in interface java.security.Principal
public boolean addMember(java.security.Principal user)
addMember
in interface java.security.acl.Group
user
- the principal to add to this group.
public boolean removeMember(java.security.Principal user)
removeMember
in interface java.security.acl.Group
user
- the principal to remove from this group.
public boolean isMember(java.security.Principal member)
isMember
in interface java.security.acl.Group
member
- the principal whose membership is to be checked.
public java.util.Enumeration<? extends java.security.Principal> members()
members
in interface java.security.acl.Group
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |