Class LdapURLUtils

java.lang.Object
eu.europa.esig.dss.service.http.commons.LdapURLUtils

public class LdapURLUtils extends Object
Contains util methods for dealing with LDAP protocol urls
  • Method Details

    • encode

      public static String encode(String str)
      RFC 4516 Lightweight Directory Access Protocol (LDAP): Uniform Resource Locator 2.1. Percent-Encoding An octet MUST be encoded using the percent-encoding mechanism described in section 2.1 of [RFC3986] in any of these situations: - The octet is not in the reserved set defined in section 2.2 of [RFC3986] or in the unreserved set defined in section 2.3 of [RFC3986]. Must be implemented by URI provider: - It is the single Reserved character '?' and occurs inside a 'dn', 'filter', or other element of an LDAP URL. - It is a comma character ',' that occurs inside an 'exvalue'.
      Parameters:
      str - String ldap uri to encode
      Returns:
      encoded String ldap uri