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, toString
public SimpleGroup(String groupName)
public boolean isMember(Principal p)
GroupPrincipal
isMember
in interface GroupPrincipal
p
- the principal whose membership is to be checked.public boolean addMember(Principal p)
GroupPrincipal
addMember
in interface GroupPrincipal
p
- the principal to add to this group.public Enumeration<? extends Principal> members()
GroupPrincipal
members
in interface GroupPrincipal
public boolean removeMember(Principal p)
GroupPrincipal
removeMember
in interface GroupPrincipal
p
- the principal to remove from this group.public boolean equals(Object obj)
equals
in interface Principal
equals
in class SimplePrincipal
public int hashCode()
hashCode
in interface Principal
hashCode
in class SimplePrincipal
Apache CXF