Class OpenNMSConfiguration
- java.lang.Object
-
- javax.security.auth.login.Configuration
-
- org.opennms.web.springframework.security.OpenNMSConfiguration
-
public class OpenNMSConfiguration extends javax.security.auth.login.Configuration
Outside of Karaf (ie, in the "system" bundle) we need to use the springframework-security version of the OpenNMSLoginModule run. We can't share login modules because of classloading boundaries, and the peculiar way that Karaf wraps login modules in a proxy class. Additionally, there are some cases where we wish to use the system's JAAS configuration. To achieve this, we gather all of the configuration implementations until the Karaf implementation is loaded (this implementation is currently loaded last in the startup process). When a request is made, we then delegate to all of the known implementations.
-
-
Constructor Summary
Constructors Constructor Description OpenNMSConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
javax.security.auth.login.AppConfigurationEntry[]
getAppConfigurationEntry(java.lang.String name)
void
init()
void
refresh()
-
-
-
Method Detail
-
init
public void init() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
close
public void close()
-
getAppConfigurationEntry
public javax.security.auth.login.AppConfigurationEntry[] getAppConfigurationEntry(java.lang.String name)
- Specified by:
getAppConfigurationEntry
in classjavax.security.auth.login.Configuration
-
refresh
public void refresh()
- Overrides:
refresh
in classjavax.security.auth.login.Configuration
-
-