Examples of containsRole()


Examples of org.jboss.security.identity.plugins.SimpleRoleGroup.containsRole()

      {
         if(callerRunAs instanceof RunAsIdentity)
         {
            RunAsIdentity callerRunAsIdentity = (RunAsIdentity) callerRunAs;
            SimpleRoleGroup srg = new SimpleRoleGroup(callerRunAsIdentity.getRunAsRoles());
            allowed = srg.containsRole(deploymentrole);
         }
      }
      return allowed ? AuthorizationContext.PERMIT : AuthorizationContext.DENY;
   }
}
View Full Code Here

Examples of org.jboss.security.identity.plugins.SimpleRoleGroup.containsRole()

      assertNotNull("Mapping Context is not null", mc);
      mc.performMapping(map, grp);
     
      grp = (RoleGroup) mc.getMappingResult().getMappedObject();
     
      assertFalse("oldRole does not exist", grp.containsRole(new SimpleRole("oldRole")));
      assertTrue("t1 exists?",grp.containsRole(new SimpleRole("t1")));
      assertTrue("t2 exists?",grp.containsRole(new SimpleRole("t2")));
   }
  
   public void testAttributeProvider()
View Full Code Here

Examples of org.jboss.security.identity.plugins.SimpleRoleGroup.containsRole()

      mc.performMapping(map, grp);
     
      grp = (RoleGroup) mc.getMappingResult().getMappedObject();
     
      assertFalse("oldRole does not exist", grp.containsRole(new SimpleRole("oldRole")));
      assertTrue("t1 exists?",grp.containsRole(new SimpleRole("t1")));
      assertTrue("t2 exists?",grp.containsRole(new SimpleRole("t2")));
   }
  
   public void testAttributeProvider()
   {
View Full Code Here

Examples of org.jboss.security.identity.plugins.SimpleRoleGroup.containsRole()

     
      grp = (RoleGroup) mc.getMappingResult().getMappedObject();
     
      assertFalse("oldRole does not exist", grp.containsRole(new SimpleRole("oldRole")));
      assertTrue("t1 exists?",grp.containsRole(new SimpleRole("t1")));
      assertTrue("t2 exists?",grp.containsRole(new SimpleRole("t2")));
   }
  
   public void testAttributeProvider()
   {
      SecurityConfiguration.addApplicationPolicy(createApplicationPolicy(securityDomain));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.