Commit 6991ee3a authored by Patrick Dowler's avatar Patrick Dowler
Browse files

use standard genHaskKey method

parent 6f7c2fa0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ sourceCompatibility = 1.7

group = 'org.opencadc'

version = '1.1.2'
version = '1.1.3'

dependencies {
    compile 'log4j:log4j:1.+'
+3 −4
Original line number Diff line number Diff line
@@ -223,10 +223,9 @@ public class CertificateDAO

    public X509CertificateChain get(X500Principal principal)
    {
        if (principal == null) return null;
        String canonizedDn = AuthenticationUtil.canonizeDistinguishedName(principal.getName());
        X500Principal p = new X500Principal(canonizedDn);
        String hashKey = Integer.toString(p.hashCode());
        if (principal == null) 
            return null;
        String hashKey = X509CertificateChain.genHashKey(principal);
        return get(hashKey);
    }