diff options
Diffstat (limited to 'cadi/cass')
-rw-r--r-- | cadi/cass/src/main/java/com/att/aaf/cadi/cass/AAFAuthenticator.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cadi/cass/src/main/java/com/att/aaf/cadi/cass/AAFAuthenticator.java b/cadi/cass/src/main/java/com/att/aaf/cadi/cass/AAFAuthenticator.java index 3e87a366..7362b13e 100644 --- a/cadi/cass/src/main/java/com/att/aaf/cadi/cass/AAFAuthenticator.java +++ b/cadi/cass/src/main/java/com/att/aaf/cadi/cass/AAFAuthenticator.java @@ -153,11 +153,13 @@ public class AAFAuthenticator extends AAFBase implements ISaslAwareAuthenticator end = i; } - if (user == null) + if (user == null) { throw new AuthenticationException("Authentication ID must not be null"); - if (pass == null) { - throw new AuthenticationException("Password must not be null"); } + // SONAR thinks this code won't be hit, and keeps calling it a "Blocker" (???) so we delete +// if (pass == null) { +// throw new AuthenticationException("Password must not be null"); +// } Map<String,String> credentials = new HashMap<String,String>(); try { credentials.put(IAuthenticator.USERNAME_KEY, new String(user, Config.UTF_8)); |