diff options
author | Instrumental <jonathan.gathman@att.com> | 2019-02-22 16:19:44 -0600 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2019-02-22 17:28:05 -0600 |
commit | 004851a114cc06933368ffe55fd58f0d010debb0 (patch) | |
tree | 87d8df95dba8c038e11f6d59b82205d6cdd5427d /shiro/src/main/java/org/onap/aaf/cadi/shiro/AAFAuthenticationInfo.java | |
parent | 4a698c2e3d926fd69673eea8b15a78bc7770a29c (diff) |
Choose better Concurrency Object
Issue-ID: AAF-771:
Change-Id: I112120d380f34a86890b83889880337199e21f57
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'shiro/src/main/java/org/onap/aaf/cadi/shiro/AAFAuthenticationInfo.java')
-rw-r--r-- | shiro/src/main/java/org/onap/aaf/cadi/shiro/AAFAuthenticationInfo.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shiro/src/main/java/org/onap/aaf/cadi/shiro/AAFAuthenticationInfo.java b/shiro/src/main/java/org/onap/aaf/cadi/shiro/AAFAuthenticationInfo.java index 99e387d..d936794 100644 --- a/shiro/src/main/java/org/onap/aaf/cadi/shiro/AAFAuthenticationInfo.java +++ b/shiro/src/main/java/org/onap/aaf/cadi/shiro/AAFAuthenticationInfo.java @@ -65,19 +65,20 @@ public class AAFAuthenticationInfo implements AuthenticationInfo { UsernamePasswordToken upt = (UsernamePasswordToken)atoken; if(apc.getPrimaryPrincipal().getName().equals(upt.getPrincipal())) { byte[] newhash = getSaltedCred(new String(upt.getPassword())); - access.printf(Level.INFO,"Successful authentication attempt by %s",upt.getPrincipal()); if(newhash.length==hash.length) { for(int i=0;i<hash.length;++i) { if(hash[i]!=newhash[i]) { return false; } } + access.printf(Level.DEBUG,"UserPassword Matches for %s",upt.getPrincipal()); return true; } } } else { access.printf(Level.ERROR, "AAFAuthenticationInfo received non-AAF token %s (%s)",atoken.getPrincipal(),atoken.getClass().getName()); } + access.log(Level.DEBUG,"UserPassword does NOT match"); return false; } |