|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ldap.core.LdapEncoder
public class LdapEncoder
Helper class to encode and decode ldap names and values.
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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
|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |