|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.util.LdapUtil
public class LdapUtil
Utility class that provides utility methods that is specific to LDAP protocol. For example, escaping special characters in a Java string into the format used by LDAP for specifying the DN.
Field Summary | |
---|---|
protected static char[] |
HEX_DIGIT_CONVERSION_ARRAY
|
Constructor Summary | |
---|---|
LdapUtil()
|
Method Summary | |
---|---|
static void |
appendByteInHex(java.lang.StringBuffer buf,
byte inByte)
Append the specified byte into the StringBuffer in the format of "\XX", where XX is the hexadecimal representation of the byte. |
static void |
appendByteInHex(java.lang.StringBuilder buf,
byte inByte)
Append the specified byte into the StringBuilder in the format of "\XX", where XX is the hexadecimal representation of the byte. |
static void |
appendCharInUTF8(java.lang.StringBuffer buf,
char inChar)
Append the specified character into the StringBuffer as a string of hexadecimal character representation in UTF 8 encoding. |
static void |
appendCharInUTF8(java.lang.StringBuilder buf,
char inChar)
Append the specified character into the StringBuilder as a string of hexadecimal character representation in UTF 8 encoding. |
static void |
appendHexDigit(java.lang.StringBuffer buf,
byte inByte)
Append the specified hexadecimal digit into the StringBuffer as a single character between 0 to F. |
static void |
appendHexDigit(java.lang.StringBuilder buf,
byte inByte)
Append the specified hexadecimal digit into the StringBuilder as a single character between 0 to F. |
static java.lang.String |
convertForDN(java.lang.String inStr)
Convert a string into the DN format as specified in RFC 2253. |
static java.lang.String |
convertForFilter(java.lang.String inStr)
Convert the inStr into a string that can be used in a LDAP search filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final char[] HEX_DIGIT_CONVERSION_ARRAY
Constructor Detail |
---|
public LdapUtil()
Method Detail |
---|
public static java.lang.String convertForDN(java.lang.String inStr)
public static java.lang.String convertForFilter(java.lang.String inStr)
public static void appendByteInHex(java.lang.StringBuilder buf, byte inByte)
public static void appendHexDigit(java.lang.StringBuilder buf, byte inByte)
public static void appendCharInUTF8(java.lang.StringBuilder buf, char inChar)
public static void appendByteInHex(java.lang.StringBuffer buf, byte inByte)
public static void appendHexDigit(java.lang.StringBuffer buf, byte inByte)
public static void appendCharInUTF8(java.lang.StringBuffer buf, char inChar)
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.