Package org.jboss.security.mapping.providers

Examples of org.jboss.security.mapping.providers.DeploymentRolesMappingProvider


      assertFalse(containsMapping(cmap));
   }
  
   private boolean containsMapping(Map<String,Object> cmap)
   {
      DeploymentRolesMappingProvider drmp = new DeploymentRolesMappingProvider();
      MappingResult<RoleGroup> result = new MappingResult<RoleGroup>();
      //MappingResult<Group> result = new MappingResult<Group>();
      drmp.setMappingResult(result);
     
      drmp.performMapping(cmap, getGroup(new String[]{"gooduser","okuser"}));
      return result.getMappedObject().containsRole(new SimpleRole("allowedUser"));
      //return result.getMappedObject().isMember(new SimplePrincipal("allowedUser"));
   }
View Full Code Here

TOP

Related Classes of org.jboss.security.mapping.providers.DeploymentRolesMappingProvider

Copyright © 2018 www.massapicom. 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.