Package org.jboss.security.mapping.providers

Examples of org.jboss.security.mapping.providers.DeploymentRolesMappingProvider.performMapping()


      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"));
   }
  
   private Map<String,Set<String>> getPrincipalRoleMap()
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.