|
JAAS | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.security.auth.SolarisNumericUserPrincipal
UnixNumericUserPrincipal
.
This class is entirely deprecated.
@Deprecated public class SolarisNumericUserPrincipal
This class implements the Principal
interface
and represents a user's Solaris identification number (UID).
Principals such as this SolarisNumericUserPrincipal
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 | |
---|---|
SolarisNumericUserPrincipal(long name)
Deprecated. Create a SolarisNumericUserPrincipal using a
long representation of the user's identification number (UID). |
|
SolarisNumericUserPrincipal(String name)
Deprecated. Create a SolarisNumericUserPrincipal using a
String representation of the
user's identification number (UID). |
Method Summary | |
---|---|
boolean |
equals(Object o)
Deprecated. Compares the specified Object with this SolarisNumericUserPrincipal
for equality. |
String |
getName()
Deprecated. Return the user identification number (UID) for this SolarisNumericUserPrincipal . |
int |
hashCode()
Deprecated. Return a hash code for this SolarisNumericUserPrincipal . |
long |
longValue()
Deprecated. Return the user identification number (UID) for this SolarisNumericUserPrincipal as a long. |
String |
toString()
Deprecated. Return a string representation of this SolarisNumericUserPrincipal . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SolarisNumericUserPrincipal(String name)
SolarisNumericUserPrincipal
using a
String
representation of the
user's identification number (UID).
name
- the user identification number (UID) for this user.
NullPointerException
- if the name
is null
.public SolarisNumericUserPrincipal(long name)
SolarisNumericUserPrincipal
using a
long representation of the user's identification number (UID).
name
- the user identification number (UID) for this user
represented as a long.Method Detail |
---|
public String getName()
SolarisNumericUserPrincipal
.
getName
in interface Principal
SolarisNumericUserPrincipal
public long longValue()
SolarisNumericUserPrincipal
as a long.
SolarisNumericUserPrincipal
as a long.public String toString()
SolarisNumericUserPrincipal
.
toString
in interface Principal
toString
in class Object
SolarisNumericUserPrincipal
.public boolean equals(Object o)
SolarisNumericUserPrincipal
for equality. Returns true if the given object is also a
SolarisNumericUserPrincipal
and the two
SolarisNumericUserPrincipals
have the same user identification number (UID).
equals
in interface Principal
equals
in class Object
o
- Object to be compared for equality with this
SolarisNumericUserPrincipal
.
SolarisNumericUserPrincipal
.public int hashCode()
SolarisNumericUserPrincipal
.
hashCode
in interface Principal
hashCode
in class Object
SolarisNumericUserPrincipal
.
|
JAAS | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |