public class InternalX500DNHandler extends java.lang.Object implements X500DNHandler
X500DNHandler which uses the internal built-in mechanisms
provided by X500Principal directly.FORMAT_RFC1779, FORMAT_RFC2253| Constructor and Description |
|---|
InternalX500DNHandler() |
| 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.
|
@Nonnull
public byte[] getEncoded(@Nonnull
javax.security.auth.x500.X500Principal principal)
getEncoded in interface X500DNHandlerprincipal - the principal name instance to serialize@Nonnull
public java.lang.String getName(@Nonnull
javax.security.auth.x500.X500Principal principal)
getName in interface X500DNHandlerprincipal - the principal name instance to serialize@Nonnull
public java.lang.String getName(@Nonnull
javax.security.auth.x500.X500Principal principal,
@Nonnull
java.lang.String format)
X500DNHandler.FORMAT_RFC1779 and X500DNHandler.FORMAT_RFC2253;getName in interface X500DNHandlerprincipal - the principal name instance to serializeformat - the format specifier of the resulting serialized string name@Nonnull
public javax.security.auth.x500.X500Principal parse(@Nonnull
java.lang.String name)
parse in interface X500DNHandlername - the name string to parse@Nonnull
public javax.security.auth.x500.X500Principal parse(@Nonnull
byte[] name)
parse in interface X500DNHandlername - a distinguished name in ASN.1 DER encoded form@Nonnull public X500DNHandler clone()
Cloneable.clone in interface X500DNHandlerclone in class java.lang.Object