Enum EscapeStrategy
- java.lang.Object
-
- java.lang.Enum<EscapeStrategy>
-
- org.keycloak.storage.ldap.idm.query.EscapeStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<EscapeStrategy>
public enum EscapeStrategy extends Enum<EscapeStrategy>
- Author:
- Marek Posolda
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT
NON_ASCII_CHARS_ONLY
OCTET_STRING
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
appendByte(byte b, StringBuilder output)
abstract String
escape(String input)
static String
escapeHex(byte[] bytes)
static EscapeStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static EscapeStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NON_ASCII_CHARS_ONLY
public static final EscapeStrategy NON_ASCII_CHARS_ONLY
-
DEFAULT
public static final EscapeStrategy DEFAULT
-
OCTET_STRING
public static final EscapeStrategy OCTET_STRING
-
-
Method Detail
-
values
public static EscapeStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EscapeStrategy c : EscapeStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EscapeStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
escapeHex
public static String escapeHex(byte[] bytes)
-
appendByte
protected void appendByte(byte b, StringBuilder output)
-
-