java.lang.Object | |
↳ | com.sun.security.auth.SolarisNumericGroupPrincipal |
This class is deprecated.
As of JDK 1.4, replaced by
UnixNumericGroupPrincipal
.
This class is entirely deprecated.
This class implements the Principal
interface
and represents a user's Solaris group identification number (GID).
Principals such as this SolarisNumericGroupPrincipal
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
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a
SolarisNumericGroupPrincipal using a
String representation of the user's
group identification number (GID). | |||||||||||
Create a
SolarisNumericGroupPrincipal using a
long representation of the user's group identification number (GID). |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compares the specified Object with this
SolarisNumericGroupPrincipal
for equality. | |||||||||||
Return the user's group identification number (GID) for this
SolarisNumericGroupPrincipal . | |||||||||||
Return a hash code for this
SolarisNumericGroupPrincipal . | |||||||||||
Return whether this group identification number (GID) represents
the primary group to which this user belongs.
| |||||||||||
Return the user's group identification number (GID) for this
SolarisNumericGroupPrincipal as a long. | |||||||||||
Return a string representation of this
SolarisNumericGroupPrincipal . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Create a SolarisNumericGroupPrincipal
using a
String
representation of the user's
group identification number (GID).
name | the user's group identification number (GID) for this user. |
---|---|
primaryGroup | true if the specified GID represents the primary group to which this user belongs. |
NullPointerException | if the name
is null .
|
---|
Create a SolarisNumericGroupPrincipal
using a
long representation of the user's group identification number (GID).
name | the user's group identification number (GID) for this user represented as a long. |
---|---|
primaryGroup | true if the specified GID represents the primary group to which this user belongs. |
Compares the specified Object with this
SolarisNumericGroupPrincipal
for equality. Returns true if the given object is also a
SolarisNumericGroupPrincipal
and the two
SolarisNumericGroupPrincipals
have the same group identification number (GID).
o | Object to be compared for equality with this
SolarisNumericGroupPrincipal . |
---|
SolarisNumericGroupPrincipal
.
Return the user's group identification number (GID) for this
SolarisNumericGroupPrincipal
.
SolarisNumericGroupPrincipal
Return a hash code for this SolarisNumericGroupPrincipal
.
SolarisNumericGroupPrincipal
.
Return whether this group identification number (GID) represents the primary group to which this user belongs.
Return the user's group identification number (GID) for this
SolarisNumericGroupPrincipal
as a long.
SolarisNumericGroupPrincipal
as a long.
Return a string representation of this
SolarisNumericGroupPrincipal
.
SolarisNumericGroupPrincipal
.