public interface X500DNHandler
X500Principal
.Modifier and Type | Field and Description |
---|---|
static String |
FORMAT_RFC1779
Specifies the string format specified in RFC 1779.
|
static String |
FORMAT_RFC2253
Specifies the string format specified in RFC 2253.
|
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.
|
static final String FORMAT_RFC1779
static final String FORMAT_RFC2253
@Nonnull X500Principal parse(@Nonnull String name)
name
- the name string to parseIllegalArgumentException
- if the name value can not be parsed by the implementation@Nonnull X500Principal parse(@Nonnull byte[] name)
name
- a distinguished name in ASN.1 DER encoded formIllegalArgumentException
- if the name value can not be parsed by the implementation@Nonnull String getName(@Nonnull X500Principal principal)
principal
- the principal name instance to serialize@Nonnull String getName(@Nonnull X500Principal principal, @Nonnull String format)
FORMAT_RFC1779
and FORMAT_RFC2253
;principal
- the principal name instance to serializeformat
- the format specifier of the resulting serialized string nameIllegalArgumentException
- if the specified format is not understood by the implementation@Nonnull byte[] getEncoded(@Nonnull X500Principal principal)
principal
- the principal name instance to serialize@Nonnull X500DNHandler clone()
Cloneable
.Copyright © 2016 JBoss by Red Hat. All rights reserved.