Package org.apache.camel.component.ldap
Class LdapHelper
- java.lang.Object
-
- org.apache.camel.component.ldap.LdapHelper
-
public final class LdapHelper extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
escapeFilter(String filter)
Given an LDAP search string, returns the string with certain characters escaped according to RFC 2254 guidelines.
-
-
-
Method Detail
-
escapeFilter
public static String escapeFilter(String filter)
Given an LDAP search string, returns the string with certain characters escaped according to RFC 2254 guidelines. The character mapping is as follows:- * = \2a
- ( = \28
- ) = \29
- \ = \5c
- \0 = \00
- Parameters:
filter
- string to escape according to RFC 2254 guidelines- Returns:
- String the escaped/encoded result
-
-