String casRenew = InfoGlueAuthenticationFilter.casRenew;
String casServiceUrl = InfoGlueAuthenticationFilter.casServiceUrl;
String casValidateUrl = InfoGlueAuthenticationFilter.casValidateUrl;
String casProxyValidateUrl = InfoGlueAuthenticationFilter.casProxyValidateUrl;
AuthenticationModule authenticationModule = (AuthenticationModule)Class.forName(authenticatorClass).newInstance();
authenticationModule.setAuthenticatorClass(authenticatorClass);
authenticationModule.setAuthorizerClass(authorizerClass);
authenticationModule.setInvalidLoginUrl(invalidLoginUrl);
authenticationModule.setLoginUrl(loginUrl);
authenticationModule.setServerName(serverName);
authenticationModule.setExtraProperties(extraProperties);
authenticationModule.setCasRenew(casRenew);
authenticationModule.setCasServiceUrl(casServiceUrl);
authenticationModule.setCasValidateUrl(casValidateUrl);
authenticationModule.setCasProxyValidateUrl(casProxyValidateUrl);
authenticationModule.setTransactionObject(db);
String authenticatedUserName = authenticationModule.authenticateUser(request);
logger.info("authenticatedUserName:" + authenticatedUserName);
if(authenticatedUserName != null)
principal = UserControllerProxy.getController(db).getUser(authenticatedUserName);
logger.info("principal:" + principal);
}