}
} catch (SecurityException e) {
log.info("Failed to retrieve login configuration: using default. " + e);
}
if (loginConfig == null) {
loginConfig = new OakConfiguration(options); // TODO: define configuration structure
}
return new LoginContextProviderImpl(appName, loginConfig, nodeStore, indexProvider, securityProvider);
}