public interface X500DNHandler
X500Principal.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FORMAT_RFC1779
Specifies the string format specified in RFC 1779.
|
static java.lang.String |
FORMAT_RFC2253
Specifies the string format specified in RFC 2253.
|
| Modifier and Type | Method and Description |
|---|---|
X500DNHandler |
clone()
Clone the handler.
|
byte[] |
getEncoded(javax.security.auth.x500.X500Principal principal)
Returns the distinguished name in ASN.1 DER encoded form.
|
java.lang.String |
getName(javax.security.auth.x500.X500Principal principal)
Returns a string representation of the X.500 distinguished name using the default format
as defined in the underlying implementation.
|
java.lang.String |
getName(javax.security.auth.x500.X500Principal principal,
java.lang.String format)
Returns a string representation of the X.500 distinguished name using the specified format.
|
javax.security.auth.x500.X500Principal |
parse(byte[] name)
Parse the ASN.1 DER encoding representation of a name and build a new principal instance.
|
javax.security.auth.x500.X500Principal |
parse(java.lang.String name)
Parse the string representation of a name and build a new principal instance.
|
static final java.lang.String FORMAT_RFC1779
static final java.lang.String FORMAT_RFC2253
@Nonnull
javax.security.auth.x500.X500Principal parse(@Nonnull
java.lang.String name)
name - the name string to parsejava.lang.IllegalArgumentException - if the name value can not be parsed by the implementation@Nonnull
javax.security.auth.x500.X500Principal parse(@Nonnull
byte[] name)
name - a distinguished name in ASN.1 DER encoded formjava.lang.IllegalArgumentException - if the name value can not be parsed by the implementation@Nonnull
java.lang.String getName(@Nonnull
javax.security.auth.x500.X500Principal principal)
principal - the principal name instance to serialize@Nonnull
java.lang.String getName(@Nonnull
javax.security.auth.x500.X500Principal principal,
@Nonnull
java.lang.String format)
FORMAT_RFC1779 and FORMAT_RFC2253;principal - the principal name instance to serializeformat - the format specifier of the resulting serialized string namejava.lang.IllegalArgumentException - if the specified format is not understood by the implementation@Nonnull
byte[] getEncoded(@Nonnull
javax.security.auth.x500.X500Principal principal)
principal - the principal name instance to serialize@Nonnull X500DNHandler clone()
Cloneable.