eu.emi.security.authn.x509.helpers
Class DNComparator
java.lang.Object
eu.emi.security.authn.x509.helpers.DNComparator
public class DNComparator
- extends Object
Helpers for checking text representations of DNs for equality.
- Author:
- K. Benedyczak
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DNComparator
public DNComparator()
preNormalize
public static String preNormalize(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.
What is more all DC and EMAIL values are converted to lower case.
- Parameters:
dn
- in RFC 2253 form.
- Returns:
- dn in RFC 2253 form, reformatted.
getHashCode
public static int getHashCode(String dn)
- Parameters:
dn
- source dn
- Returns:
- hashcode useful as a return value of the hshCode() method,
when equals is overriden to use
X500NameUtils
equals method.
Copyright © 2012-2013 European Middleware Initiative. All Rights Reserved.