This class represents an X.500
X500Principals are represented by distinguished names such as
"CN=Duke, OU=JavaSoft, O=Sun Microsystems, C=US".
This class can be instantiated by using a string representation of the distinguished name, or by using the ASN.1 DER encoded byte representation of the distinguished name. The current specification for the string representation of a distinguished name is defined in RFC 2253: Lightweight Directory Access Protocol (v3): UTF-8 String Representation of Distinguished Names. This class, however, accepts string formats from both RFC 2253 and RFC 1779: A String Representation of Distinguished Names, and also recognizes attribute type keywords whose OIDs (Object Identifiers) are defined in RFC 3280: Internet X.509 Public Key Infrastructure Certificate and CRL Profile.
The string representation for this
can be obtained by calling the
Note that the
getIssuerX500Principal methods of
X509Certificate return X500Principals representing the
issuer and subject fields of the certificate.
|String||CANONICAL||Canonical String format of Distinguished Names.|
|String||RFC1779||RFC 1779 String format of Distinguished Names.|
|String||RFC2253||RFC 2253 String format of Distinguished Names.|
Public Constructor Summary
Public Method Summary
Returns the distinguished name in ASN.1 DER encoded form.
Returns a string representation of the X.500 distinguished name using the format defined in RFC 2253.
Return a hash code for this
Return a user-friendly string representation of this
Inherited Method Summary
Creates and returns a copy of this
Invoked when the garbage collector has detected that this instance is no longer reachable.
Returns an integer hash code for this object.
Causes a thread which is waiting on this object's monitor (by means of calling one of the
Causes all threads which are waiting on this object's monitor (by means of calling one of the
Returns a string containing a concise, human-readable description of this object.
wait(long timeout, int nanos)
Causes the calling thread to wait until another thread calls the
public static final String CANONICAL
Canonical String format of Distinguished Names.
public static final String RFC1779
RFC 1779 String format of Distinguished Names.
public static final String RFC2253
RFC 2253 String format of Distinguished Names.
public X500Principal (String name)
X500Principal from a string representation of
an X.500 distinguished name (ex:
"CN=Duke, OU=JavaSoft, O=Sun Microsystems, C=US").
The distinguished name must be specified using the grammar defined in
RFC 1779 or RFC 2253 (either format is acceptable).
This constructor recognizes the attribute type keywords
defined in RFC 1779 and RFC 2253
(and listed in
as well as the T, DNQ or DNQUALIFIER, SURNAME, GIVENNAME, INITIALS,
GENERATION, EMAILADDRESS, and SERIALNUMBER keywords whose OIDs are
defined in RFC 3280 and its successor.
Any other attribute type must be specified as an OID.
|name||an X.500 distinguished name in RFC 1779 or RFC 2253 format|