|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.security.auth.LinuxNumericUserPrincipal
public class LinuxNumericUserPrincipal
This class represents a user's Linux identification number (UID).
Principals such as this LinuxNumericUserPrincipal
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 | |
---|---|
LinuxNumericUserPrincipal(long name)
Create a LinuxNumericUserPrincipal using a
long representation of the user's identification number (UID). |
|
LinuxNumericUserPrincipal(java.lang.String name)
Create a LinuxNumericUserPrincipal 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 LinuxNumericUserPrincipal
for equality. |
java.lang.String |
getName()
Return the user identification number (UID) for this LinuxNumericUserPrincipal . |
int |
hashCode()
Return a hash code for this LinuxNumericUserPrincipal . |
long |
longValue()
Return the user identification number (UID) for this LinuxNumericUserPrincipal as a long. |
java.lang.String |
toString()
Return a string representation of this LinuxNumericUserPrincipal . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LinuxNumericUserPrincipal(java.lang.String name)
LinuxNumericUserPrincipal
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 LinuxNumericUserPrincipal(long name)
LinuxNumericUserPrincipal
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()
LinuxNumericUserPrincipal
.
getName
in interface java.security.Principal
LinuxNumericUserPrincipal
public long longValue()
LinuxNumericUserPrincipal
as a long.
LinuxNumericUserPrincipal
as a long.public java.lang.String toString()
LinuxNumericUserPrincipal
.
toString
in interface java.security.Principal
toString
in class java.lang.Object
LinuxNumericUserPrincipal
.public boolean equals(java.lang.Object o)
LinuxNumericUserPrincipal
for equality. Returns true if the given object is also a
LinuxNumericUserPrincipal
and the two
LinuxNumericUserPrincipals
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
LinuxNumericUserPrincipal
.
LinuxNumericUserPrincipal
.public int hashCode()
LinuxNumericUserPrincipal
.
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
LinuxNumericUserPrincipal
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |