|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.SimplePrincipal
org.jboss.security.SimpleGroup
public class 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(String groupName)
|
Method Summary | |
---|---|
boolean |
addMember(Principal user)
Adds the specified member to the group. |
Object |
clone()
|
boolean |
isMember(Principal member)
Returns true if the passed principal is a member of the group. |
Enumeration |
members()
Returns an enumeration of the members in the group. |
boolean |
removeMember(Principal user)
Removes the specified member from the group. |
String |
toString()
|
Methods inherited from class org.jboss.security.SimplePrincipal |
---|
equals, getName, hashCode |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
equals, getName, hashCode |
Constructor Detail |
---|
public SimpleGroup(String groupName)
Method Detail |
---|
public boolean addMember(Principal user)
addMember
in interface Group
user
- the principal to add to this group.
public boolean isMember(Principal member)
isMember
in interface Group
member
- the principal whose membership is to be checked.
public Enumeration members()
members
in interface Group
public boolean removeMember(Principal user)
removeMember
in interface Group
user
- the principal to remove from this group.
public String toString()
toString
in interface Principal
toString
in class SimplePrincipal
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |