netscape.ldap
Class LDAPDN
java.lang.Object
|
+--netscape.ldap.LDAPDN
- public class LDAPDN
- extends java.lang.Object
Represents a distinguished name in LDAP.
You can use objects of this class to split a distinguished name
(DN) into its individual components. You can also escape the
characters in a DN.
Method Summary |
static java.lang.String |
escapeRDN(java.lang.String rdn)
Returns the RDN after escaping the characters specified
by netscape.ldap.util.DN.ESCAPED_CHAR . |
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 (RDN). |
static java.lang.String |
unEscapeRDN(java.lang.String rdn)
Returns the RDN after unescaping any escaped characters. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
LDAPDN
public LDAPDN()
explodeDN
public static java.lang.String[] explodeDN(java.lang.String dn,
boolean noTypes)
- Returns the individual components of a distinguished name (DN).
- Parameters:
dn
- distinguished name of which you want to get the components.noTypes
- if true
, returns only the values of the
components and not the names (such as 'cn=')- Returns:
- an array of strings representing the components of the DN.
- See Also:
explodeRDN(java.lang.String, boolean)
explodeRDN
public static java.lang.String[] explodeRDN(java.lang.String rdn,
boolean noTypes)
- Returns the individual components of a relative distinguished name (RDN).
- Parameters:
rdn
- relative distinguished name of which you want to get the components.noTypes
- if true
, returns only the values of the
components and not the names (such as 'cn=')- Returns:
- an array of strings representing the components of the RDN.
- See Also:
explodeDN(java.lang.String, boolean)
escapeRDN
public static java.lang.String escapeRDN(java.lang.String rdn)
- Returns the RDN after escaping the characters specified
by
netscape.ldap.util.DN.ESCAPED_CHAR
.
- Parameters:
rdn
- the RDN to escape- Returns:
- the RDN with the characters escaped.
- See Also:
DN.ESCAPED_CHAR
,
unEscapeRDN(java.lang.String)
unEscapeRDN
public static java.lang.String unEscapeRDN(java.lang.String rdn)
- Returns the RDN after unescaping any escaped characters.
For a list of characters that are typically escaped in a
DN, see
netscape.ldap.LDAPDN.ESCAPED_CHAR
.
- Parameters:
rdn
- the RDN to unescape- Returns:
- the unescaped RDN.
- See Also:
DN.ESCAPED_CHAR
,
escapeRDN(java.lang.String)