public class GroupPrincipal extends Object implements Group, Serializable
| Constructor and Description |
|---|
GroupPrincipal(String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addMember(Principal user)
Adds the specified member to the group.
|
boolean |
equals(Object o) |
String |
getName() |
int |
hashCode() |
boolean |
isMember(Principal member)
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 user)
Removes the specified member from the group.
|
String |
toString() |
public GroupPrincipal(String name)
public boolean equals(Object o)
public int hashCode()
public String toString()
public boolean addMember(Principal user)
Grouppublic boolean removeMember(Principal user)
GroupremoveMember in interface Groupuser - the principal to remove from this group.public boolean isMember(Principal member)
Grouppublic Enumeration<? extends Principal> members()
GroupCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.