com.ibm.security.auth
Class X500Principal
- java.lang.Object
-
- com.ibm.security.auth.X500Principal
-
- All Implemented Interfaces:
- java.io.Serializable, java.security.Principal
Deprecated.A new X500Principal class is available in the Java platform. This X500Principal classs is entirely deprecated and is here to allow for a smooth transition to the new class.
public class X500Principal extends java.lang.Object implements java.security.Principal, java.io.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 particularSubject
to augment thatSubject
with an additional identity. Refer to theSubject
class for more information on how to achieve this. Authorization decisions can then be based upon the Principals associated with aSubject
.- See Also:
Principal
,Subject
,X500Principal
, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description X500Principal(java.lang.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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description boolean
equals(java.lang.Object o)
Deprecated.Compares the specified Object with thisX500Principal
for equality.java.lang.String
getName()
Deprecated.Return the Unix username for thisX500Principal
.int
hashCode()
Deprecated.Return a hash code for thisX500Principal
.java.lang.String
toString()
Deprecated.Return a string representation of thisX500Principal
.
-
-
-
Constructor Detail
-
X500Principal
public X500Principal(java.lang.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).- Parameters:
name
- the X.500 name- Throws:
java.lang.NullPointerException
- if thename
isnull
.java.lang.IllegalArgumentException
- if thename
is improperly specified.
-
-
Method Detail
-
getName
public java.lang.String getName()
Deprecated.Return the Unix username for thisX500Principal
.- Specified by:
getName
in interfacejava.security.Principal
- Returns:
- the Unix username for this
X500Principal
-
toString
public java.lang.String toString()
Deprecated.Return a string representation of thisX500Principal
.- Specified by:
toString
in interfacejava.security.Principal
- Overrides:
toString
in classjava.lang.Object
- Returns:
- a string representation of this
X500Principal
.
-
equals
public boolean equals(java.lang.Object o)
Deprecated.Compares the specified Object with thisX500Principal
for equality.- Specified by:
equals
in interfacejava.security.Principal
- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- Object to be compared for equality with thisX500Principal
.- Returns:
- true if the specified Object is equal equal to this
X500Principal
.
-
hashCode
public int hashCode()
Deprecated.Return a hash code for thisX500Principal
.- Specified by:
hashCode
in interfacejava.security.Principal
- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- a hash code for this
X500Principal
.
-
-