|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.security.SimplePrincipal (src) org.jboss.security.SimpleGroup
An implementation of Group that manages a collection of Principal objects based on their hashCode() and equals() methods. This class is not thread safe.
Constructor Summary | |
SimpleGroup(java.lang.String groupName)
|
Method Summary | |
boolean |
addMember(java.security.Principal user)
Adds the specified member to the group. |
boolean |
isMember(java.security.Principal member)
Returns true if the passed principal is a member of the group. |
java.util.Enumeration |
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()
|
Methods inherited from class org.jboss.security.SimplePrincipal (src) |
equals, getName, hashCode |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.security.Principal |
equals, getName, hashCode |
Constructor Detail |
public SimpleGroup(java.lang.String groupName)
Method Detail |
public boolean addMember(java.security.Principal user)
addMember
in interface java.security.acl.Group
user
- the principal to add to 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 members()
members
in interface java.security.acl.Group
public boolean removeMember(java.security.Principal user)
removeMember
in interface java.security.acl.Group
user
- the principal to remove from this group.
public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class SimplePrincipal (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |