|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.security.auth.X500Principal
This class represents an X.500 Principal
.
X500Principals have names such as,
"CN=Duke, OU=JavaSoft, O=Sun Microsystems, C=US"
(RFC 1779 style).
Principals such as this X500Principal
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 | |
java.lang.String)">X500Principal(java.lang.String name)
Create a X500Principal with an X.500 Name, such as "CN=Duke, OU=JavaSoft, O=Sun Microsystems, C=US" (RFC 1779 style). |
Method Summary | |
boolean |
java.lang.Object)">equals(java.lang.Object o)
Compares the specified Object with this X500Principal
for equality. |
java.lang.String |
getName()
Return the Unix username for this X500Principal . |
int |
hashCode()
Return a hash code for this X500Principal . |
java.lang.String |
toString()
Return a string representation of this X500Principal . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public X500Principal(java.lang.String name)
name
- the X.500 nameNullPointerException
- if the name
is null
. java.lang.IllegalArgumentException
- if the name
is improperly specified.Method Detail |
public java.lang.String getName()
X500Principal
.
getName
in interface java.security.Principal
X500Principal
public java.lang.String toString()
X500Principal
.
toString
in interface java.security.Principal
toString
in class java.lang.Object
X500Principal
.public boolean equals(java.lang.Object o)
X500Principal
for equality.
equals
in interface java.security.Principal
equals
in class java.lang.Object
o
- Object to be compared for equality with this
X500Principal
.X500Principal
.public int hashCode()
X500Principal
.
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
X500Principal
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |