Class LDAPUtils

java.lang.Object
org.bouncycastle.ldap.LDAPUtils

public class LDAPUtils extends Object
General utility methods for assisting with preparation of LDAP queries.
  • Constructor Details

    • LDAPUtils

      public LDAPUtils()
  • Method Details

    • parseDN

      public static String parseDN(String subject, String subjectAttributeName)
      Parse out the contents of a particular subject attribute name from the string form of an X.500 DN.
      Parameters:
      subject - string form of an X.500 DN.
      subjectAttributeName - the RDN attribute name of interest.
      Returns:
      an escaped string suitable for use in an LDAP query.