Package org.cryptacular.x509.dn
Class LdapNameFormatter
java.lang.Object
org.cryptacular.x509.dn.LdapNameFormatter
- All Implemented Interfaces:
NameFormatter
Produces a string representation of an X.500 distinguished name using the process described in section 2 of RFC 2253,
LADPv3 Distinguished Names.
- Author:
- Middleware Services
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final char
Separator character between ATV components in the same RDN element.static final char
Escape character.static final char
Separator character between RDN components.static final String
String of characters that need to be escaped. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat
(X500Principal dn) Produces a string representation of the given X.500 principal.
-
Field Details
-
RDN_SEPARATOR
public static final char RDN_SEPARATORSeparator character between RDN components.- See Also:
-
ATV_SEPARATOR
public static final char ATV_SEPARATORSeparator character between ATV components in the same RDN element.- See Also:
-
ESCAPE_CHAR
public static final char ESCAPE_CHAREscape character.- See Also:
-
RESERVED_CHARS
String of characters that need to be escaped.- See Also:
-
-
Constructor Details
-
LdapNameFormatter
public LdapNameFormatter()
-
-
Method Details
-
format
Description copied from interface:NameFormatter
Produces a string representation of the given X.500 principal.- Specified by:
format
in interfaceNameFormatter
- Parameters:
dn
- Distinguished name as as X.500 principal.- Returns:
- String representation of DN.
-