aboutsummaryrefslogtreecommitdiffstats
path: root/shiro
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2019-02-28 10:32:39 -0600
committerInstrumental <jonathan.gathman@att.com>2019-02-28 10:32:59 -0600
commit6ac87e3e76e41b6c1e75c1216031f2e2e7129eec (patch)
treec726b4e66a54f586e13fa44b8edbaf64c0de6c20 /shiro
parent5a4898a108ecf3e2e020e83eb35ef6b63fadc4cb (diff)
Fix Class Compare2.1.13
Issue-ID: AAF-771 Change-Id: I4ae41def8830939651d64954c1479f2f5dece82d Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'shiro')
-rw-r--r--shiro/src/main/java/org/onap/aaf/cadi/shiro/AAFRealm.java2
-rw-r--r--shiro/src/test/java/org/onap/aaf/cadi/shiro/test/JU_AAFRealm.java1
2 files changed, 2 insertions, 1 deletions
diff --git a/shiro/src/main/java/org/onap/aaf/cadi/shiro/AAFRealm.java b/shiro/src/main/java/org/onap/aaf/cadi/shiro/AAFRealm.java
index c455a4d..eb8bc60 100644
--- a/shiro/src/main/java/org/onap/aaf/cadi/shiro/AAFRealm.java
+++ b/shiro/src/main/java/org/onap/aaf/cadi/shiro/AAFRealm.java
@@ -297,7 +297,7 @@ public class AAFRealm extends AuthorizingRealm {
@Override
public boolean supports(AuthenticationToken token) {
// Only one was being loaded. If more are needed uncomment the multi-class mode
- return UsernamePasswordToken.class.equals(token);
+ return token instanceof UsernamePasswordToken;
// return singleton.supports.contains(token.getClass());
}
diff --git a/shiro/src/test/java/org/onap/aaf/cadi/shiro/test/JU_AAFRealm.java b/shiro/src/test/java/org/onap/aaf/cadi/shiro/test/JU_AAFRealm.java
index f159a8f..9b9c295 100644
--- a/shiro/src/test/java/org/onap/aaf/cadi/shiro/test/JU_AAFRealm.java
+++ b/shiro/src/test/java/org/onap/aaf/cadi/shiro/test/JU_AAFRealm.java
@@ -38,6 +38,7 @@ import org.onap.aaf.cadi.shiro.AAFShiroPermission;
public class JU_AAFRealm {
+//@Test
public void test() {
// NOTE This is a live test. This JUnit needs to be built with "Mock" before it can be
// an official JUNIT