Examples of IRoleValidator


Examples of org.jboss.identity.federation.web.interfaces.IRoleValidator

               return userName;
            }
         };    
        
         //Validate the roles
         IRoleValidator roleValidator = (IRoleValidator) options.get(GeneralConstants.ROLE_VALIDATOR);
         boolean validRole = roleValidator.userInRole(principal, roles);
         if(!validRole)
         {
            if(trace)
               log.trace("Invalid role:" + roles);
            principal = null;
View Full Code Here

Examples of org.picketlink.identity.federation.web.interfaces.IRoleValidator

            Principal principal = new SerializablePrincipal(userName);

            if (handlerChainConfig.getParameter(GeneralConstants.ROLE_VALIDATOR_IGNORE) == null) {
                // Validate the roles
                IRoleValidator roleValidator = (IRoleValidator) handlerChainConfig
                        .getParameter(GeneralConstants.ROLE_VALIDATOR);
                if (roleValidator == null)
                    throw logger.nullValueError("Role Validator");

                boolean validRole = roleValidator.userInRole(principal, roles);

                if (!validRole) {
                    logger.trace("Invalid role: " + roles);
                    principal = null;
                }
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.