diff options
author | Instrumental <jonathan.gathman@att.com> | 2018-11-12 13:55:25 -0600 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2018-11-12 13:56:57 -0600 |
commit | 355cda9893529070169e4814158924d1d14094f8 (patch) | |
tree | 6c62624f26589df7786100adeb8d93ee8b70e101 /shiro/src | |
parent | e41dea2b2b8189511a636eb9d500fb328914ae14 (diff) |
Add instantiation Log Message
Issue-ID: AAF-618
Change-Id: I7b9630056ee3aa8246ef0a90ac01d53a6853f79d
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'shiro/src')
-rw-r--r-- | shiro/src/main/java/org/onap/aaf/cadi/shiro/AAFRealm.java | 1 | ||||
-rw-r--r-- | shiro/src/test/java/org/onap/aaf/cadi/shiro/test/JU_AAFRealm.java | 6 |
2 files changed, 5 insertions, 2 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 96af26e..3577c13 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 @@ -80,6 +80,7 @@ public class AAFRealm extends AuthorizingRealm { if(csv!=null) { try { mbc = new MapBathConverter(access, new CSV(csv)); + access.printf(Level.INIT, "MapBathConversion enabled with file %s\n",csv); } catch (IOException e) { access.log(e); } 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 f915538..386f529 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 @@ -27,7 +27,9 @@ import org.apache.shiro.authc.UsernamePasswordToken; import org.apache.shiro.authz.AuthorizationInfo; import org.apache.shiro.authz.Permission; import org.apache.shiro.subject.PrincipalCollection; +import org.junit.Test; import org.onap.aaf.cadi.aaf.AAFPermission; +import org.onap.aaf.cadi.config.Config; import org.onap.aaf.cadi.shiro.AAFRealm; import org.onap.aaf.cadi.shiro.AAFShiroPermission; @@ -45,7 +47,8 @@ public class JU_AAFRealm { TestAAFRealm ar = new TestAAFRealm(); //UsernamePasswordToken upt = new UsernamePasswordToken("demo@people.osaaf.org", "demo123456!"); - UsernamePasswordToken upt = new UsernamePasswordToken("AAI", "AAI"); + /// UsernamePasswordToken upt = new UsernamePasswordToken("AAI", "AAI"); + UsernamePasswordToken upt = new UsernamePasswordToken("admin","Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U"); AuthenticationInfo ani = ar.authn(upt); @@ -62,7 +65,6 @@ public class JU_AAFRealm { } } */ - private void testAPerm(boolean expect, AuthorizationInfo azi, String ns, String type, String instance, String action) { AAFShiroPermission testPerm = new AAFShiroPermission(new AAFPermission(ns,type,instance,action,new ArrayList<String>())); |