summaryrefslogtreecommitdiffstats
path: root/shiro/src/main/java
diff options
context:
space:
mode:
authorSai Gandham <sg481n@att.com>2019-01-08 14:03:18 -0600
committerSai Gandham <sg481n@att.com>2019-01-08 14:03:36 -0600
commit965dac7a82d2962a9c6d0c1dfc1d52f4b7e05916 (patch)
tree910a54ee4a1d341b0e7a454cd79a1c9412e7e8c9 /shiro/src/main/java
parentea7e24513918dbc96ec5d6210239d84c5b3e0c2c (diff)
Add few more debug statements for logging2.1.9
Issue-ID: AAF-655 Change-Id: Ib429e035dc6b217498bb88b7aa9153e58f01fddb Signed-off-by: Sai Gandham <sg481n@att.com>
Diffstat (limited to 'shiro/src/main/java')
-rw-r--r--shiro/src/main/java/org/onap/aaf/cadi/shiro/AAFAuthorizationInfo.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/shiro/src/main/java/org/onap/aaf/cadi/shiro/AAFAuthorizationInfo.java b/shiro/src/main/java/org/onap/aaf/cadi/shiro/AAFAuthorizationInfo.java
index 60ea11f..7633670 100644
--- a/shiro/src/main/java/org/onap/aaf/cadi/shiro/AAFAuthorizationInfo.java
+++ b/shiro/src/main/java/org/onap/aaf/cadi/shiro/AAFAuthorizationInfo.java
@@ -25,10 +25,10 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
-import org.apache.log4j.Logger;
import org.apache.shiro.authz.AuthorizationInfo;
import org.apache.shiro.authz.Permission;
import org.onap.aaf.cadi.Access;
+import org.onap.aaf.cadi.Access.Level;
/**
* We treat "roles" and "permissions" in a similar way for first pass.
@@ -37,9 +37,6 @@ import org.onap.aaf.cadi.Access;
*
*/
public class AAFAuthorizationInfo implements AuthorizationInfo {
-
- final static Logger logger = Logger.getLogger(AuthorizationInfo.class);
-
private static final long serialVersionUID = -4805388954462426018L;
private Access access;
private Principal bait;
@@ -61,12 +58,13 @@ public class AAFAuthorizationInfo implements AuthorizationInfo {
@Override
public Collection<Permission> getObjectPermissions() {
- logger.debug("AAFAuthorizationInfo.getObjectPermissions");
+// access.log(Level.DEBUG, "AAFAuthorizationInfo.getObjectPermissions");
synchronized(bait) {
if(oPerms == null) {
oPerms = new ArrayList<Permission>();
for(final org.onap.aaf.cadi.Permission p : pond) {
oPerms.add(new AAFShiroPermission(p));
+ System.out.println("List user" + p);
}
}
}
@@ -75,19 +73,20 @@ public class AAFAuthorizationInfo implements AuthorizationInfo {
@Override
public Collection<String> getRoles() {
- logger.debug("AAFAuthorizationInfo.getRoles");
+// access.log(Level.DEBUG, "AAFAuthorizationInfo.getRoles");
// Until we decide to make Roles available, tie into String based permissions.
return getStringPermissions();
}
@Override
public Collection<String> getStringPermissions() {
- logger.debug("AAFAuthorizationInfo.getStringPermissions");
+// access.log(Level.DEBUG, "AAFAuthorizationInfo.getStringPermissions");
synchronized(bait) {
if(sPerms == null) {
sPerms = new ArrayList<String>();
for(org.onap.aaf.cadi.Permission p : pond) {
sPerms.add(p.getKey().replace("|",":"));
+ System.out.println("Replacing | to :" + p.getKey().replace("|",":"));
}
}
}