Add ability for BAuth by domain
[aaf/authz.git] / cadi / aaf / src / main / java / org / onap / aaf / cadi / aaf / cert / AAFListedCertIdentity.java
index de8ae7d..bc1f94d 100644 (file)
@@ -56,7 +56,7 @@ import aaf.v2_0.Users.User;
 
 public class AAFListedCertIdentity implements CertIdentity {
        //TODO should 8 hours be configurable? 
-       private static final long EIGHT_HOURS = 1000*60*60*8; 
+       private static final long EIGHT_HOURS = 1000*60*60*8L
                        
        private static Map<ByteArrayHolder,String> certs = null;
        
@@ -93,7 +93,7 @@ public class AAFListedCertIdentity implements CertIdentity {
                byte[] fingerprint = X509Taf.getFingerPrint(certBytes);
                String id = certs.get(new ByteArrayHolder(fingerprint));
                if(id!=null) { // Caller is Validated
-                       return new X509Principal(id,cert,certBytes);
+                       return new X509Principal(id,cert,certBytes,null);
                }
                return null;
        }