UnixNumericGroupPrincipal
.
This class is entirely deprecated.@Exported(value=false) @Deprecated public class SolarisNumericGroupPrincipal extends Object implements Principal, Serializable
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
.
Principal
,
Subject
,
Serialized FormConstructor and Description |
---|
SolarisNumericGroupPrincipal(long name,
boolean primaryGroup)
Deprecated.
Create a
SolarisNumericGroupPrincipal using a
long representation of the user's group identification number (GID). |
SolarisNumericGroupPrincipal(String name,
boolean primaryGroup)
Deprecated.
Create a
SolarisNumericGroupPrincipal using a
String representation of the user's
group identification number (GID). |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Deprecated.
Compares the specified Object with this
SolarisNumericGroupPrincipal
for equality. |
String |
getName()
Deprecated.
Return the user's group identification number (GID) for this
SolarisNumericGroupPrincipal . |
int |
hashCode()
Deprecated.
Return a hash code for this
SolarisNumericGroupPrincipal . |
boolean |
isPrimaryGroup()
Deprecated.
Return whether this group identification number (GID) represents
the primary group to which this user belongs.
|
long |
longValue()
Deprecated.
Return the user's group identification number (GID) for this
SolarisNumericGroupPrincipal as a long. |
String |
toString()
Deprecated.
Return a string representation of this
SolarisNumericGroupPrincipal . |
public SolarisNumericGroupPrincipal(String name, boolean primaryGroup)
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
.public SolarisNumericGroupPrincipal(long name, boolean primaryGroup)
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.public String getName()
SolarisNumericGroupPrincipal
.
public long longValue()
SolarisNumericGroupPrincipal
as a long.
SolarisNumericGroupPrincipal
as a long.public boolean isPrimaryGroup()
public String toString()
SolarisNumericGroupPrincipal
.
public boolean equals(Object o)
SolarisNumericGroupPrincipal
for equality. Returns true if the given object is also a
SolarisNumericGroupPrincipal
and the two
SolarisNumericGroupPrincipals
have the same group identification number (GID).
public int hashCode()
SolarisNumericGroupPrincipal
.
hashCode
in interface Principal
hashCode
in class Object
SolarisNumericGroupPrincipal
.Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
Copyright © 1998, 2014, Oracle and/or its affiliates. All rights reserved.