All LDAP Classes
Internal LDAP Classes

org.ietf.ldap
Class LDAPDN

java.lang.Object
  extended byorg.ietf.ldap.LDAPDN

public class LDAPDN
extends java.lang.Object

A utility class to facilitate composition and deomposition of distinguished names (DNs).

See Also:
com.novell.ldap.LDAPDN

Constructor Summary
protected LDAPDN()
           
 
Method Summary
static boolean equals(java.lang.String dn1, java.lang.String dn2)
          Compares the two strings per the distinguishedNameMatch equality matching (using case-ignore matching).
static java.lang.String escapeRDN(java.lang.String rdn)
          Returns the RDN after escaping the characters requiring escaping.
static java.lang.String[] explodeDN(java.lang.String dn, boolean noTypes)
          Returns the individual components of a distinguished name (DN).
static java.lang.String[] explodeRDN(java.lang.String rdn, boolean noTypes)
          Returns the individual components of a relative distinguished name
static boolean isValid(java.lang.String dn)
          Returns true if the string conforms to distinguished name syntax.
static java.lang.String normalize(java.lang.String dn)
          Returns the DN normalized by removal of non-significant space characters.
static java.lang.String unescapeRDN(java.lang.String rdn)
          Returns the RDN after unescaping the characters requiring escaping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPDN

protected LDAPDN()
Method Detail

equals

public static boolean equals(java.lang.String dn1,
                             java.lang.String dn2)
Compares the two strings per the distinguishedNameMatch equality matching (using case-ignore matching).

See Also:
com.novell.ldap.LDAPDN.equals(String, String)

escapeRDN

public static java.lang.String escapeRDN(java.lang.String rdn)
Returns the RDN after escaping the characters requiring escaping.

See Also:
com.novell.ldap.LDAPDN.escapeRDN(String)

explodeDN

public static java.lang.String[] explodeDN(java.lang.String dn,
                                           boolean noTypes)
Returns the individual components of a distinguished name (DN).

See Also:
com.novell.ldap.LDAPDN.explodeDN(String, boolean)

explodeRDN

public static java.lang.String[] explodeRDN(java.lang.String rdn,
                                            boolean noTypes)
Returns the individual components of a relative distinguished name

See Also:
com.novell.ldap.LDAPDN.explodeRDN(String, boolean)

isValid

public static boolean isValid(java.lang.String dn)
Returns true if the string conforms to distinguished name syntax.

See Also:
com.novell.ldap.LDAPDN.isValid(String)

normalize

public static java.lang.String normalize(java.lang.String dn)
Returns the DN normalized by removal of non-significant space characters.

See Also:
com.novell.ldap.LDAPDN.normalize(String)

unescapeRDN

public static java.lang.String unescapeRDN(java.lang.String rdn)
Returns the RDN after unescaping the characters requiring escaping.

See Also:
com.novell.ldap.LDAPDN.unescapeRDN(String)

All LDAP Classes
Internal LDAP Classes

Copyright © 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000