public class DNStandardiser extends Object
This class is used to normalise DNs so that equivalent DNs will be transformed into equal strings.
Often, a better way to compare DNs is to use LdapName.
Although this class is not marked as deprecated, as there is no direct replacement, you probably don't want to be making new use of it.
| Constructor and Description |
|---|
DNStandardiser() |
| Modifier and Type | Method and Description |
|---|---|
static String |
standardise(LdapName name,
boolean forceProperStandard) |
static String |
standardise(String dn,
boolean forceProperStandard)
Converts a DN string into a "standard"
DN string representation consumable by
caches.
|
public static String standardise(String dn, boolean forceProperStandard)
forceProperStandard
is false, then the compact (spaceless)
comma delimited DNs are transformed to lower case.
This method assumes that the DNs are case-insensitive.
If it is not known whether the directory server
will return spaceless or spaced commas, we need
to use the full DN standardisation. Set
forceProperStandard to true
for the significantly slower, 100% effective,
standardisation. This method also assumes nothing
about the case of DNs.dn - original DN.forceProperStandard - true if you
want to enforce the slow but effective standardisation process.Copyright © 2022 Atlassian. All rights reserved.