Principal interface
and represents a user's Unix group identification number (GID).
Principals such as this UnixNumericGroupPrincipal
may be associated with a particular Subject
to augment that Subject with an additional
identity. Refer to the Subject class for more information
on how to achieve this. Authorization decisions can then be based upon
the Principals associated with a Subject.
java.security.Principal , javax.security.auth.Subject
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private boolean | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | UnixNumericGroupPrincipal(String
the user's group identification number (GID)
for this user. name, boolean true if the specified GID represents the
primary group to which this user belongs. primaryGroup)Create a |
| public | UnixNumericGroupPrincipal(long
the user's group identification number (GID) for this user
represented as a long. name, boolean true if the specified GID represents the
primary group to which this user belongs. primaryGroup)Create a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the specified Object is equal to thisUnixNumericGroupPrincipal.Object to be compared for equality with this
o)UnixNumericGroupPrincipal.Overrides java. Implements java. Compares the specified Object with this
|
| public String | Returns: the user's group identification number (GID) for thisUnixNumericGroupPrincipalImplements java. Return the user's group identification number (GID) for this
|
| public int | Returns: a hash code for thisUnixNumericGroupPrincipal.Overrides java. Implements java. Return a hash code for this |
| public boolean | Returns: true if this group identification number (GID) represents the primary group to which this user belongs, or false otherwise.Return whether this group identification number (GID) represents the primary group to which this user belongs. |
| public long | Returns: the user's group identification number (GID) for thisUnixNumericGroupPrincipal as a long.Return the user's group identification number (GID) for this
|
| private void | readObject(ObjectInputStream
the stream)ObjectInputStream from which data is readRestores the state of this object from the stream. |
| public String | Returns: a string representation of thisUnixNumericGroupPrincipal.Overrides java. Implements java. Return a string representation of this
|
| name | back to summary |
|---|---|
| private String name | |
| primaryGroup | back to summary |
|---|---|
| private boolean primaryGroup | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID
| |
| UnixNumericGroupPrincipal | back to summary |
|---|---|
| public UnixNumericGroupPrincipal(String name, boolean primaryGroup) Create a
| |
| UnixNumericGroupPrincipal | back to summary |
|---|---|
| public UnixNumericGroupPrincipal(long name, boolean primaryGroup) Create a
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Implements java. Compares the specified Object with this
| |
| getName | back to summary |
|---|---|
| public String getName() Implements java. Return the user's group identification number (GID) for this
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Return a hash code for this
| |
| isPrimaryGroup | back to summary |
|---|---|
| public boolean isPrimaryGroup() Return whether this group identification number (GID) represents the primary group to which this user belongs.
| |
| longValue | back to summary |
|---|---|
| public long longValue() Return the user's group identification number (GID) for this
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException Restores the state of this object from the stream.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements java. Return a string representation of this
| |