|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 groupMethod Detail |
---|
public boolean equals(java.lang.Object another)
equals
in interface java.security.Principal
equals
in class java.lang.Object
another
- principal to compare with.
public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
public java.lang.String getName()
getName
in interface java.security.Principal
public boolean addMember(java.security.Principal user)
addMember
in interface java.security.acl.Group
user
- the principal to add to this group.
public boolean removeMember(java.security.Principal user)
removeMember
in interface java.security.acl.Group
user
- the principal to remove from 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |