|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.Groupuser - the principal to add to this group.
public boolean isMember(java.security.Principal member)
isMember in interface java.security.acl.Groupmember - the principal whose membership is to be checked.
public java.util.Enumeration members()
members in interface java.security.acl.Grouppublic boolean removeMember(java.security.Principal user)
removeMember in interface java.security.acl.Groupuser - the principal to remove from this group.
public java.lang.String toString()
toString in interface java.security.PrincipaltoString in class SimplePrincipal (src)
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||