}
catch (Exception e)
{
if (userClass == null)
{
throw new InitializationException(
"Failed to create a Class object for User implementation", e);
}
if (groupClass == null)
{
throw new InitializationException(
"Failed to create a Class object for Group implementation", e);
}
if (permissionClass == null)
{
throw new InitializationException(
"Failed to create a Class object for Permission implementation", e);
}
if (roleClass == null)
{
throw new InitializationException(
"Failed to create a Class object for Role implementation", e);
}
if (aclClass == null)
{
throw new InitializationException(
"Failed to create a Class object for ACL implementation", e);
}
}
try
{
UserManager userManager =
(UserManager) Class.forName(userManagerClassName).newInstance();
userManager.init(conf);
setUserManager(userManager);
}
catch (Exception e)
{
throw new InitializationException("Failed to instantiate UserManager", e);
}
try
{
aclFactoryService = (FactoryService) TurbineServices.getInstance().
getService(FactoryService.SERVICE_NAME);
}
catch (Exception e)
{
throw new InitializationException(
"BaseSecurityService.init: Failed to get the Factory Service object", e);
}
setInit(true);
}