JAAS

com.sun.security.auth
Class X500Principal

java.lang.Object
  extended by com.sun.security.auth.X500Principal
All Implemented Interfaces:
Serializable, Principal

Deprecated. A new X500Principal class is available in the Java 2 platform. This X500Principal classs is entirely deprecated and is here to allow for a smooth transition to the new class.

@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.

See Also:
Principal, Subject, X500Principal, Serialized Form

Constructor 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

X500Principal

public 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).

Parameters:
name - the X.500 name
Throws:
NullPointerException - if the name is null.

IllegalArgumentException - if the name is improperly specified.
Method Detail

getName

public String getName()
Deprecated. 
Return the Unix username for this X500Principal.

Specified by:
getName in interface Principal
Returns:
the Unix username for this X500Principal

toString

public String toString()
Deprecated. 
Return a string representation of this X500Principal.

Specified by:
toString in interface Principal
Overrides:
toString in class Object
Returns:
a string representation of this X500Principal.

equals

public boolean equals(Object o)
Deprecated. 
Compares the specified Object with this X500Principal for equality.

Specified by:
equals in interface Principal
Overrides:
equals in class Object
Parameters:
o - Object to be compared for equality with this X500Principal.
Returns:
true if the specified Object is equal equal to this X500Principal.

hashCode

public int hashCode()
Deprecated. 
Return a hash code for this X500Principal.

Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object
Returns:
a hash code for this X500Principal.

JAAS