Package org.apache.camel.component.ldap
Class LdapHelper
java.lang.Object
org.apache.camel.component.ldap.LdapHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
escapeFilter
(String filter) Given an LDAP search string, returns the string with certain characters escaped according to RFC 2254 guidelines.
-
Method Details
-
escapeFilter
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
-