valveConf.getAuthenticationProcessImpl();
logger.debug("Setting authenticationProcessClsName: " +
authenticationProcessClsName);
} else {
// Throw Configuration Exception
throw new ValveConfigurationException("Valve Configuration file has not been set correctly");
}
}
// Protection
if ((authenticationProcessClsName == null) ||
(authenticationProcessClsName.equals(""))) {
// Throw Configuration Exception
throw new ValveConfigurationException("Configuration parameter [authorizationProcessImpl] has not been set correctly");
}
try {
// Instantiate the authorization process class
authenticationProcessImpl =
(AuthenticationProcessImpl)Class.forName(authenticationProcessClsName).newInstance();
authenticationProcessImpl.setValveConfiguration(valveConf);
} catch (InstantiationException ie) {
// Throw Configuration Exception
throw new ValveConfigurationException("Configuration parameter [authorizationProcessImpl] has not been set correctly - InstantiationException");
} catch (IllegalAccessException iae) {
// Throw Configuration Exception
throw new ValveConfigurationException("Configuration parameter [authorizationProcessImpl] has not been set correctly - IllegalAccessException");
} catch (ClassNotFoundException cnfe) {
// Throw Configuration Exception
throw new ValveConfigurationException("Configuration parameter [authorizationProcessImpl] has not been set correctly - ClassNotFoundException");
}
return authenticationProcessImpl;