@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class LDAPDN extends java.lang.Object
DN class should be
used instead.| Modifier and Type | Method and Description |
|---|---|
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.
|
@NotNull public static java.lang.String normalize(@NotNull java.lang.String dn)
dn - The string representation of the DN to be normalized.@NotNull public static java.lang.String[] explodeDN(@NotNull 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.@NotNull public static java.lang.String[] explodeRDN(@NotNull 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(@NotNull java.lang.String dn1, @NotNull 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.