- static ILoginContext getLoginContext() {
- if (loginContext == null)
- throw new ArgeoException(
- "No Equinox login context available, check your configuration");
- return loginContext;
+ static ILoginContext createLoginContext() {
+ URL configUrl = bundleContext.getBundle().getEntry(JAAS_CONFIG_FILE);
+ return LoginContextFactory.createContext(CONTEXT_SPRING, configUrl);