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 SummaryEnum Constants Enum Constant Description DEFAULTNON_ASCII_CHARS_ONLYOCTET_STRING
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidappendByte(byte b, StringBuilder output)abstract Stringescape(String input)static StringescapeHex(byte[] bytes)static EscapeStrategyvalueOf(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_ONLYpublic static final EscapeStrategy NON_ASCII_CHARS_ONLY 
 - 
DEFAULTpublic static final EscapeStrategy DEFAULT 
 - 
OCTET_STRINGpublic static final EscapeStrategy OCTET_STRING 
 
- 
 - 
Method Detail- 
valuespublic 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
 
 - 
valueOfpublic 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 name
- NullPointerException- if the argument is null
 
 - 
escapeHexpublic static String escapeHex(byte[] bytes) 
 - 
appendByteprotected void appendByte(byte b, StringBuilder output)
 
- 
 
-