API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.security.auth.x500. X500Principal View Source
Author(s)
Since
1.4
Version
1.25, 11/17/05
Serial
Hierarchy
 Object
      X500Principal
Implements
 Principal
 Serializable
Subclasses
Description
publicfinal class X500Principal
  This class represents an X.500 Principal.
See also:    X509Certificate
Constructors
public X500Principal (byte[] name)
  Creates an X500Principal from a distinguished name in ASN.1 DER encoded form.
public X500Principal (InputStream is)
  Creates an X500Principal from an InputStream containing the distinguished name in ASN.1 DER encoded form.
public X500Principal (String name)
  Creates an X500Principal from a string representation of an X.500 distinguished name (ex: "CN=Duke, OU=JavaSoft, O=Sun Microsystems, C=US").
public X500Principal (String name, Map<String, String> keywordMap)
  Creates an X500Principal from a string representation of an X.500 distinguished name (ex: "CN=Duke, OU=JavaSoft, O=Sun Microsystems, C=US").
pack-private X500Principal (sun.security.x509.X500Name x500Name)
  Creates an X500Principal by wrapping an X500Name.
Methods
Hide/Show inherited methods
public boolean equals (Object o) [Specified in Principal]
  Compares the specified Object with this X500Principal for equality.
public byte getEncoded ()
  Returns the distinguished name in ASN.1 DER encoded form.
public String getName () [Specified in Principal]
  Returns a string representation of the X.500 distinguished name using the format defined in RFC 2253.
public String getName (String format)
  Returns a string representation of the X.500 distinguished name using the specified format.
public String getName (String format, Map<String, String> oidMap)
  Returns a string representation of the X.500 distinguished name using the specified format.
public int hashCode () [Specified in Principal]
  Return a hash code for this X500Principal.
public String toString () [Specified in Principal]
  Return a user-friendly string representation of this X500Principal.
Fields
Hide/Show inherited fields
publicfinalstatic String CANONICAL = "CANONICAL"
Canonical String format of Distinguished Names.
publicfinalstatic String RFC1779 = "RFC1779"
RFC 1779 String format of Distinguished Names.
publicfinalstatic String RFC2253 = "RFC2253"
RFC 2253 String format of Distinguished Names.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar