Java javax.security.auth.x500 X500Principal fields, constructors, methods, implement or subclass

Example usage for Java javax.security.auth.x500 X500Principal fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.security.auth.x500 X500Principal.

The text is from its open source code.

Field

StringRFC1779
RFC 1779 String format of Distinguished Names.
StringRFC2253
RFC 2253 String format of Distinguished Names.
StringCANONICAL
Canonical String format of Distinguished Names.

Constructor

X500Principal(X500Name x500Name)
Creates an X500Principal by wrapping an X500Name.
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").
X500Principal(byte[] name)
Creates an X500Principal from a distinguished name in ASN.1 DER encoded form.
X500Principal(InputStream is)
Creates an X500Principal from an InputStream containing the distinguished name in ASN.1 DER encoded form.
X500Principal(String name, Map keywordMap)
Creates an X500Principal from a string representation of an X.500 distinguished name (ex: "CN=Duke, OU=JavaSoft, O=Sun Microsystems, C=US").

Method

booleanequals(Object o)
Compares the specified Object with this X500Principal for equality.
byte[]getEncoded()
Returns the distinguished name in ASN.1 DER encoded form.
StringgetName(String format)
Returns a string representation of the X.500 distinguished name using the specified format.
StringgetName()
Returns a string representation of the X.500 distinguished name using the format defined in RFC 2253.
StringgetName(String format, Map oidMap)
Returns a string representation of the X.500 distinguished name using the specified format.
inthashCode()
Return a hash code for this X500Principal .
StringtoString()
Return a user-friendly string representation of this X500Principal .