Package org.infoglue.cms.security

Examples of org.infoglue.cms.security.AuthorizationModule


          logger.error("Error loading properties from string. Reason:" + e.getMessage());
        e.printStackTrace();
      }
    }

    AuthorizationModule authorizationModule = null;
    try
    {
      authorizationModule = (AuthorizationModule)Class.forName(authorizerClass).newInstance();
    }
    catch(Exception e)
    {
      logger.error("The authorizationModule-class was wrong:" + e.getMessage() + ": defaulting to infoglue:s own", e);
      authorizationModule = (AuthorizationModule)Class.forName(InfoGlueBasicAuthorizationModule.class.getName()).newInstance();
    }
   
    authorizationModule.setExtraProperties(extraProperties);
    logger.info("authorizerClass:" + authorizerClass + ":" + authorizationModule.getClass().getName());
   
    InfoGluePrincipal infoGluePrincipal = authorizationModule.getAuthorizedInfoGluePrincipal(userName);
    logger.info("infoGluePrincipal:" + infoGluePrincipal);
    if(infoGluePrincipal != null)
    {
      logger.info("roles:" + infoGluePrincipal.getRoles());
      logger.info("groups:" + infoGluePrincipal.getGroups());
View Full Code Here

TOP

Related Classes of org.infoglue.cms.security.AuthorizationModule

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.