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