|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.objectweb.jonas.security.auth.JGroup
public class JGroup
This class represents all the roles of a principal (group of principals). These roles are added to the Subject
| Constructor Summary | |
|---|---|
JGroup(java.lang.String name)
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 |
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 |
| Constructor Detail |
|---|
public JGroup(java.lang.String name)
name - name of the group| Method Detail |
|---|
public boolean equals(java.lang.Object another)
equals in interface java.security.Principalequals in class java.lang.Objectanother - principal to compare with.
public java.lang.String toString()
toString in interface java.security.PrincipaltoString in class java.lang.Objectpublic int hashCode()
hashCode in interface java.security.PrincipalhashCode in class java.lang.Objectpublic java.lang.String getName()
getName in interface java.security.Principalpublic boolean addMember(java.security.Principal user)
addMember in interface java.security.acl.Groupuser - the principal to add to this group.
public boolean removeMember(java.security.Principal user)
removeMember in interface java.security.acl.Groupuser - the principal to remove from 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.Group
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||