- static ILoginContext createLoginContext() {
- URL configUrl = bundleContext.getBundle().getEntry(JAAS_CONFIG_FILE);
- return LoginContextFactory.createContext(CONTEXT_SPRING, configUrl);
+ public BundleContext getBundleContext() {
+ return bundleContext;
+ }
+
+ public static SecureRapActivator getActivator() {
+ return activator;
+ }
+
+ static ILoginContext createLoginContext(String contextName) {
+ URL configUrl = getActivator().getBundleContext().getBundle()
+ .getEntry(JAAS_CONFIG_FILE);
+ return LoginContextFactory.createContext(contextName, configUrl);