Examples of performMapping()


Examples of org.jboss.security.mapping.MappingContext.performMapping()

           
            //Append the principals also
            contextMap.put(SecurityConstants.PRINCIPALS_SET_IDENTIFIER, subject.getPrincipals());
            if(trace)
               log.trace("Roles before mapping:"+ userRoles);
            mc.performMapping(contextMap, userRoles);
            mappedUserRoles = (Group) mc.getMappingResult().getMappedObject();
            if(trace)
               log.trace("Roles after mapping:"+ userRoles);
         }
         sc.getData().put(ROLES_IDENTIFIER, mappedUserRoles);
View Full Code Here

Examples of org.jboss.security.mapping.MappingContext.performMapping()

           
            //Append the principals also
            contextMap.put(SecurityConstants.PRINCIPALS_SET_IDENTIFIER, subject.getPrincipals());
            if(trace)
               log.trace("Roles before mapping:"+ userRoles);
            mc.performMapping(contextMap, userRoles);
            if(trace)
               log.trace("Roles after mapping:"+ userRoles);
         }
         sc.getData().put(ROLES_IDENTIFIER, userRoles);
      }
View Full Code Here

Examples of org.jboss.security.mapping.MappingContext.performMapping()

           
            //Append the principals also
            contextMap.put(SecurityConstants.PRINCIPALS_SET_IDENTIFIER, subject.getPrincipals());
            if(trace)
               log.trace("Roles before mapping:"+ userRoles);
            mc.performMapping(contextMap, userRoles);
            mappedUserRoles = (Group) mc.getMappingResult().getMappedObject();
            if(trace)
               log.trace("Roles after mapping:"+ userRoles);
         }
         sc.getData().put(ROLES_IDENTIFIER, mappedUserRoles);
View Full Code Here

Examples of org.jboss.security.mapping.MappingContext.performMapping()

           
            //Append the principals also
            contextMap.put(SecurityConstants.PRINCIPALS_SET_IDENTIFIER, subject.getPrincipals());
            if(trace)
               log.trace("Roles before mapping:"+ userRoles);
            mc.performMapping(contextMap, userRoles);
            if(trace)
               log.trace("Roles after mapping:"+ userRoles);
         }
         sc.getData().put(ROLES_IDENTIFIER, userRoles);
      }
View Full Code Here

Examples of org.jboss.security.mapping.MappingContext.performMapping()

/* 365 */         contextMap.put("deploymentPrincipalRolesMap", SecurityRolesAssociation.getSecurityRoles());
/*     */
/* 369 */         contextMap.put("PrincipalsSet", subject.getPrincipals());
/* 370 */         if (this.trace)
/* 371 */           log.trace("Roles before mapping:" + userRoles);
/* 372 */         mc.performMapping(contextMap, userRoles);
/* 373 */         mappedUserRoles = (Group)mc.getMappingResult().getMappedObject();
/* 374 */         if (this.trace)
/* 375 */           log.trace("Roles after mapping:" + userRoles);
/*     */       }
/* 377 */       sc.getData().put("Roles", mappedUserRoles);
View Full Code Here

Examples of org.jboss.security.mapping.MappingContext.performMapping()

           
            //Append the principals also
            contextMap.put(SecurityConstants.PRINCIPALS_SET_IDENTIFIER, subject.getPrincipals());
            if(trace)
               log.trace("Roles before mapping:"+ userRoles);
            mc.performMapping(contextMap, userRoles);
            if(trace)
               log.trace("Roles after mapping:"+ userRoles);
         }
         sc.getData().put(ROLES_IDENTIFIER, userRoles);
      }
View Full Code Here

Examples of org.jboss.security.mapping.MappingContext.performMapping()

           
            //Append the principals also
            contextMap.put(SecurityConstants.PRINCIPALS_SET_IDENTIFIER, subject.getPrincipals());
            if(trace)
               log.trace("Roles before mapping:"+ userRoles);
            mc.performMapping(contextMap, userRoles);
            if(trace)
               log.trace("Roles after mapping:"+ userRoles);
         }
         sc.getData().put(ROLES_IDENTIFIER, userRoles);
      }
View Full Code Here

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

Examples of org.picketlink.identity.federation.bindings.jboss.auth.mapping.STSGroupMappingProvider.performMapping()

                    }
                    STSGroupMappingProvider rolesMapper = new STSGroupMappingProvider();
                    rolesMapper.init(contextMap);
                    MappingResult<RoleGroup> rolesResult = new MappingResult<RoleGroup>();
                    rolesMapper.setMappingResult(rolesResult);
                    rolesMapper.performMapping(contextMap, null);
                    RoleGroup roleGroup = rolesResult.getMappedObject();
                    if (roleGroup != null) {
                        GroupPrincipal roles = null;
                        for (Role role : roleGroup.getRoles()) {
                            if (roles == null) {
View Full Code Here

Examples of org.picketlink.identity.federation.bindings.jboss.auth.mapping.STSGroupMappingProvider.performMapping()

        contextMap.put(AbstractSTSLoginModule.SHARED_TOKEN, SAMLUtil.toElement(assertion));

        MappingProvider<RoleGroup> mappingProvider = new STSGroupMappingProvider();
        mappingProvider.init(contextMap);
        mappingProvider.setMappingResult(mappingResult);
        mappingProvider.performMapping(contextMap, null);

        RoleGroup roleGroup = mappingResult.getMappedObject();
        assertNotNull("Unexpected null mapped role", roleGroup);
        assertEquals("RoleGroup name has unexpected value", SAML20TokenRoleAttributeProvider.JBOSS_ROLE_PRINCIPAL_NAME,
                roleGroup.getRoleName());
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.