|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unboundid.ldap.sdk.migrate.ldapjdk.LDAPDN
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class LDAPDN
This class provides a set of utility methods for working with LDAP DNs.
This class is primarily intended to be used in the process of updating
applications which use the Netscape Directory SDK for Java to switch to or
coexist with the UnboundID LDAP SDK for Java. For applications not written
using the Netscape Directory SDK for Java, the DN
class should be
used instead.
Method Summary | |
---|---|
static boolean |
equals(java.lang.String dn1,
java.lang.String dn2)
Indicates whether the provided strings represent the same distinguished name. |
static java.lang.String[] |
explodeDN(java.lang.String dn,
boolean noTypes)
Explodes the provided DN into individual RDN components. |
static java.lang.String[] |
explodeRDN(java.lang.String rdn,
boolean noTypes)
Explodes the provided RDN into individual name-value pairs. |
static java.lang.String |
normalize(java.lang.String dn)
Retrieves a normalized representation of the provided DN. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String normalize(java.lang.String dn)
dn
- The string representation of the DN to be normalized.
public static java.lang.String[] explodeDN(java.lang.String dn, boolean noTypes)
dn
- The DN to be exploded into its RDN components.noTypes
- Indicates whether to exclude the attribute names and
equal signs and only include the values of the RDN
components.
public static java.lang.String[] explodeRDN(java.lang.String rdn, boolean noTypes)
rdn
- The RDN to be exploded into its name-value pairs.noTypes
- Indicates whether to exclude the attribute names and
equal signs and only include the values of the components.
public static boolean equals(java.lang.String dn1, java.lang.String dn2)
dn1
- The first DN to be compared.dn2
- The second DN to be compared.
true
if the provided strings represent the same
distinguished name, or false
if not or if either of the
values cannot be parsed as a valid DN.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |