|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.security.auth.AIXNumericUserPrincipal
public class AIXNumericUserPrincipal
This class represents a user's AIX identification number (UID).
Principals such as this AIXNumericUserPrincipal
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
.
This class will be replaced by UserIDPrincipal
in future
releases of JAAS.
Principal
,
Subject
,
UserIDPrincipal
,
Serialized FormConstructor Summary | |
---|---|
AIXNumericUserPrincipal(long name)
Create an AIXNumericUserPrincipal using a
long representation of the user's identification number (UID). |
|
AIXNumericUserPrincipal(java.lang.String name)
Create an AIXNumericUserPrincipal using a
String representation of the
user's identification number (UID). |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Compares the specified Object with this AIXNumericUserPrincipal
for equality. |
java.lang.String |
getName()
Return the user identification number (UID) for this AIXNumericUserPrincipal . |
int |
hashCode()
Return a hash code for this AIXNumericUserPrincipal . |
long |
longValue()
Return the user identification number (UID) for this AIXNumericUserPrincipal as a long. |
java.lang.String |
toString()
Return a string representation of this AIXNumericUserPrincipal . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AIXNumericUserPrincipal(java.lang.String name)
AIXNumericUserPrincipal
using a
String
representation of the
user's identification number (UID).
name
- the user identification number (UID) for this user.
java.lang.NullPointerException
- if the name
is null
.public AIXNumericUserPrincipal(long name)
AIXNumericUserPrincipal
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 java.lang.String getName()
AIXNumericUserPrincipal
.
getName
in interface java.security.Principal
AIXNumericUserPrincipal
public long longValue()
AIXNumericUserPrincipal
as a long.
AIXNumericUserPrincipal
as a long.public java.lang.String toString()
AIXNumericUserPrincipal
.
toString
in interface java.security.Principal
toString
in class java.lang.Object
AIXNumericUserPrincipal
.public boolean equals(java.lang.Object o)
AIXNumericUserPrincipal
for equality. Returns true if the given object is also a
AIXNumericUserPrincipal
and the two
AIXNumericUserPrincipals
have the same user identification number (UID).
equals
in interface java.security.Principal
equals
in class java.lang.Object
o
- Object to be compared for equality with this
AIXNumericUserPrincipal
.
AIXNumericUserPrincipal
.public int hashCode()
AIXNumericUserPrincipal
.
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
AIXNumericUserPrincipal
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |