@Deprecated public class X500Principal extends Object implements Principal, Serializable
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 and Description |
---|
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).
|
Modifier and Type | Method and Description |
---|---|
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 . |
public X500Principal(String name)
name
- the X.500 nameNullPointerException
- if the name
is null
. IllegalArgumentException
- if the name
is improperly specified.public String getName()
X500Principal
.
public String toString()
X500Principal
.
public boolean equals(Object o)
X500Principal
for equality.
public int hashCode()
X500Principal
.
hashCode
in interface Principal
hashCode
in class Object
X500Principal
.Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
Copyright © 1998, 2013, Oracle and/or its affiliates. All rights reserved.