Package org.jboss.identity.federation.web.interfaces

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


      Principal userPrincipal = (Principal) session.getAttribute(GeneralConstants.PRINCIPAL_ID);
      List<String> roles = (List<String>) session.getAttribute(GeneralConstants.ROLES_ID);
     
      if(roles == null)
      {
         RoleGenerator rg = (RoleGenerator) request.getOptions().get(GeneralConstants.ROLE_GENERATOR);
         roles = rg.generateRoles(userPrincipal);
         session.setAttribute(GeneralConstants.ROLES_ID, roles);
      }
      response.setRoles(roles);
   }
View Full Code Here

TOP

Related Classes of org.jboss.identity.federation.web.interfaces.RoleGenerator

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.