|
JAAS | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.security.auth.SolarisNumericGroupPrincipal
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
.
Principal
,
Subject
,
Serialized FormConstructor Summary | |
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). |
Method Summary | |
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 . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
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.Method Detail |
public String getName()
SolarisNumericGroupPrincipal
.
getName
in interface Principal
SolarisNumericGroupPrincipal
public long longValue()
SolarisNumericGroupPrincipal
as a long.
SolarisNumericGroupPrincipal
as a long.public boolean isPrimaryGroup()
public String toString()
SolarisNumericGroupPrincipal
.
toString
in interface Principal
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).
equals
in interface Principal
o
- Object to be compared for equality with this
SolarisNumericGroupPrincipal
.
SolarisNumericGroupPrincipal
.public int hashCode()
SolarisNumericGroupPrincipal
.
hashCode
in interface Principal
SolarisNumericGroupPrincipal
.
|
JAAS | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |