- static ILoginContext getLoginContext() {
- if (loginContext == null)
- throw new ArgeoException(
- "No Equinox login context available, check your configuration");
- return loginContext;
+ 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);