public class InternalX500DNHandler extends 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(X500Principal principal)
Returns the distinguished name in ASN.1 DER encoded form.
|
String |
getName(X500Principal principal)
Returns a string representation of the X.500 distinguished name using the default format
as defined in the underlying implementation.
|
String |
getName(X500Principal principal,
String format)
Returns a string representation of the X.500 distinguished name using the specified format.
|
X500Principal |
parse(byte[] name)
Parse the ASN.1 DER encoding representation of a name and build a new principal instance.
|
X500Principal |
parse(String name)
Parse the string representation of a name and build a new principal instance.
|
public byte[] getEncoded(X500Principal principal)
getEncoded in interface X500DNHandlerprincipal - the principal name instance to serializepublic String getName(X500Principal principal)
getName in interface X500DNHandlerprincipal - the principal name instance to serializepublic String getName(X500Principal principal, 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 namepublic X500Principal parse(String name)
parse in interface X500DNHandlername - the name string to parsepublic X500Principal parse(byte[] name)
parse in interface X500DNHandlername - a distinguished name in ASN.1 DER encoded formpublic X500DNHandler clone()
Cloneable.clone in interface X500DNHandlerclone in class ObjectCopyright © 2018 JBoss by Red Hat. All rights reserved.