Class LdapEncoder.NameEncoder

java.lang.Object
org.springframework.data.ldap.repository.LdapEncoder.NameEncoder
All Implemented Interfaces:
LdapEncoder
Enclosing interface:
LdapEncoder

public static class LdapEncoder.NameEncoder extends Object implements LdapEncoder
LdapEncoder using LdapEncoder.nameEncode(String). Encodes a value for use with a DN. Escapes for LDAP, not JNDI!
  • Constructor Details

    • NameEncoder

      public NameEncoder()
  • Method Details

    • encode

      public String encode(String value)
      Description copied from interface: LdapEncoder
      Encode a value for use in a filter.
      Specified by:
      encode in interface LdapEncoder
      Parameters:
      value - the value to encode.
      Returns:
      a properly encoded representation of the supplied value.