Enum Class EscapeStrategy

java.lang.Object
java.lang.Enum<EscapeStrategy>
org.keycloak.storage.ldap.idm.query.EscapeStrategy
All Implemented Interfaces:
Serializable, Comparable<EscapeStrategy>, Constable

public enum EscapeStrategy extends Enum<EscapeStrategy>
Author:
Marek Posolda
  • Enum Constant Details

    • DEFAULT_EXCEPT_ASTERISK

      public static final EscapeStrategy DEFAULT_EXCEPT_ASTERISK
      LDAP special character * is not escaped, other special characters are escaped. Non-ASCII characters like é are escaped. Use it for searches where wildcards are allowed.
    • DEFAULT

      public static final EscapeStrategy DEFAULT
      Escaping of LDAP special characters including non-ASCII characters like é.
    • OCTET_STRING

      public static final EscapeStrategy OCTET_STRING
  • Method Details

    • values

      public static EscapeStrategy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EscapeStrategy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • escapeHex

      public static String escapeHex(byte[] bytes)
    • escape

      public abstract String escape(String input)
    • appendByte

      protected void appendByte(byte b, StringBuilder output)