@Override public Caller getCaller(Caller currentCaller, SecurityIdentity securityIdentity) { // This is deliberately checking the Subject is the exact same instance. if (currentCaller == null || securityIdentity != currentCaller.getSecurityIdentity()) { return Caller.createCaller(securityIdentity); } return currentCaller; }
@Override public Caller getCaller(Caller currentCaller, SecurityIdentity securityIdentity) { // This is deliberately checking the Subject is the exact same instance. if (currentCaller == null || securityIdentity != currentCaller.getSecurityIdentity()) { return Caller.createCaller(securityIdentity); } return currentCaller; }
if (authorizerConfiguration.isMapUsingIdentityRoles()) { rolesToCheck = new HashMap<String, AuthorizerConfiguration.RoleMapping>(authorizerConfiguration.getRoleMappings()); SecurityIdentity securityIdentity = caller.getSecurityIdentity(); for (String r : securityIdentity.getRoles()) { String roleName = r.toUpperCase(Locale.ENGLISH);
if (authorizerConfiguration.isMapUsingIdentityRoles()) { rolesToCheck = new HashMap<String, AuthorizerConfiguration.RoleMapping>(authorizerConfiguration.getRoleMappings()); SecurityIdentity securityIdentity = caller.getSecurityIdentity(); for (String r : securityIdentity.getRoles()) { String roleName = r.toUpperCase(Locale.ENGLISH);