Class LdapNameFormatter

java.lang.Object
org.cryptacular.x509.dn.LdapNameFormatter
All Implemented Interfaces:
NameFormatter

public class LdapNameFormatter extends Object implements 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 Details

    • RDN_SEPARATOR

      public static final char RDN_SEPARATOR
      Separator character between RDN components.
      See Also:
    • ATV_SEPARATOR

      public static final char ATV_SEPARATOR
      Separator character between ATV components in the same RDN element.
      See Also:
    • ESCAPE_CHAR

      public static final char ESCAPE_CHAR
      Escape character.
      See Also:
    • RESERVED_CHARS

      public static final String RESERVED_CHARS
      String of characters that need to be escaped.
      See Also:
  • Constructor Details

    • LdapNameFormatter

      public LdapNameFormatter()
  • Method Details

    • format

      public String format(X500Principal dn)
      Description copied from interface: NameFormatter
      Produces a string representation of the given X.500 principal.
      Specified by:
      format in interface NameFormatter
      Parameters:
      dn - Distinguished name as as X.500 principal.
      Returns:
      String representation of DN.