public class DNComparator
extends java.lang.Object
| Constructor and Description |
|---|
DNComparator() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getHashCode(java.lang.String dn) |
private static org.bouncycastle.asn1.x500.AttributeTypeAndValue |
normalizeAVA(org.bouncycastle.asn1.x500.AttributeTypeAndValue orig) |
static java.lang.String |
preNormalize(java.lang.String dn)
Returns a form of the original DN which will be properly parsed by JDK
X500Principal class by
replacing attribute names unknown by the X500Principal with OIDs. |
private static java.lang.String |
upLowCase(java.lang.String src)
Uppers the case of the arg, then lowers it, using non-locale specific
algorithm.
|
public static java.lang.String preNormalize(java.lang.String dn)
X500Principal class by
replacing attribute names unknown by the X500Principal with OIDs.
What is more all DC and EMAIL values are converted to lower case.dn - in RFC 2253 form.public static int getHashCode(java.lang.String dn)
dn - source dnX500NameUtils equals method.private static java.lang.String upLowCase(java.lang.String src)
src - source string.private static org.bouncycastle.asn1.x500.AttributeTypeAndValue normalizeAVA(org.bouncycastle.asn1.x500.AttributeTypeAndValue orig)