public final class GroupIdPrincipal extends Object implements GroupPrincipal
GroupPrincipal
that represents users by integer IDs.Constructor and Description |
---|
GroupIdPrincipal(int gid) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static GroupIdPrincipal |
fromGroupPrinciple(GroupPrincipal group)
Creates a
GroupIdPrincipal from a GroupPrincipal with an
unknown type. |
int |
getGid() |
String |
getName()
Returns a string representation of this group's ID.
|
int |
hashCode() |
public static GroupIdPrincipal fromGroupPrinciple(GroupPrincipal group)
GroupIdPrincipal
from a GroupPrincipal
with an
unknown type.group
- the principal to convertGroupIdPrincipal
IllegalArgumentException
- if the principal is not a
GroupIdPrincipal
and does not have a numeric name.public int getGid()
public String getName()
public int hashCode()