|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.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(String name)
Build a new group with the following name |
Method Summary | |
---|---|
boolean |
addMember(Principal user)
Adds the specified member to the group. |
boolean |
equals(Object another)
Compares this principal to the specified object. |
String |
getName()
Returns the name of this principal. |
int |
hashCode()
Returns a hashcode for this principal. |
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()
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(String name)
name
- name of the groupMethod Detail |
---|
public boolean equals(Object another)
equals
in interface Principal
equals
in class Object
another
- principal to compare with.
public String toString()
toString
in interface Principal
toString
in class Object
public int hashCode()
hashCode
in interface Principal
hashCode
in class Object
public String getName()
getName
in interface Principal
public boolean addMember(Principal user)
addMember
in interface Group
user
- the principal to add to this group.
public boolean removeMember(Principal user)
removeMember
in interface Group
user
- the principal to remove from 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |