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