|
JAAS | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.security.auth.X500Principal
@Deprecated public class 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
,
X500Principal
,
Serialized FormConstructor Summary | |
---|---|
X500Principal(String name)
Deprecated. 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 |
equals(Object o)
Deprecated. Compares the specified Object with this X500Principal
for equality. |
String |
getName()
Deprecated. Return the Unix username for this X500Principal . |
int |
hashCode()
Deprecated. Return a hash code for this X500Principal . |
String |
toString()
Deprecated. 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(String name)
name
- the X.500 name
NullPointerException
- if the name
is null
.
IllegalArgumentException
- if the name
is improperly specified.Method Detail |
---|
public String getName()
X500Principal
.
getName
in interface Principal
X500Principal
public String toString()
X500Principal
.
toString
in interface Principal
toString
in class Object
X500Principal
.public boolean equals(Object o)
X500Principal
for equality.
equals
in interface Principal
equals
in class Object
o
- Object to be compared for equality with this
X500Principal
.
X500Principal
.public int hashCode()
X500Principal
.
hashCode
in interface Principal
hashCode
in class Object
X500Principal
.
|
JAAS | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |