public class SimpleGroup extends SimplePrincipal implements GroupPrincipal
| Constructor and Description | 
|---|
| SimpleGroup(String groupName) | 
| SimpleGroup(String groupName,
           Principal member) | 
| SimpleGroup(String groupName,
           String memberName) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | addMember(Principal p)Adds the specified member to the group. | 
| boolean | equals(Object obj) | 
| int | hashCode() | 
| boolean | isMember(Principal p)Returns true if the passed principal is a member of the group. | 
| Enumeration<? extends Principal> | members()Returns an enumeration of the members in the group. | 
| boolean | removeMember(Principal p)Removes the specified member from the group. | 
getName, toStringpublic SimpleGroup(String groupName)
public boolean isMember(Principal p)
GroupPrincipalisMember in interface GroupPrincipalp - the principal whose membership is to be checked.public boolean addMember(Principal p)
GroupPrincipaladdMember in interface GroupPrincipalp - the principal to add to this group.public Enumeration<? extends Principal> members()
GroupPrincipalmembers in interface GroupPrincipalpublic boolean removeMember(Principal p)
GroupPrincipalremoveMember in interface GroupPrincipalp - the principal to remove from this group.public boolean equals(Object obj)
equals in interface Principalequals in class SimplePrincipalpublic int hashCode()
hashCode in interface PrincipalhashCode in class SimplePrincipalApache CXF