public class LdapEncoder extends Object
Modifier and Type | Method and Description |
---|---|
static String |
filterEncode(String value)
Escape a value for use in a filter.
|
static String |
nameDecode(String value)
Decodes a value.
|
static String |
nameEncode(String value)
LDAP Encodes a value for use with a DN.
|
protected static String |
toTwoCharHex(char c) |
protected static String toTwoCharHex(char c)
public static String filterEncode(String value)
value
- the value to escape.public static String nameEncode(String value)
value
- the value to escape.public static String nameDecode(String value) throws BadLdapGrammarException
value
- Trimmed value, so no leading an trailing blanks, except an
escaped space last.BadLdapGrammarException
Copyright © 2005–2015 The Spring LDAP Framework. All rights reserved.