Class OpenNMSConfiguration
- java.lang.Object
-
- javax.security.auth.login.Configuration
-
- org.opennms.web.springframework.security.OpenNMSConfiguration
-
public class OpenNMSConfiguration extends 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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.security.auth.login.Configuration
Configuration.Parameters
-
-
Constructor Summary
Constructors Constructor Description OpenNMSConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
AppConfigurationEntry[]
getAppConfigurationEntry(String name)
void
init()
void
refresh()
-
Methods inherited from class javax.security.auth.login.Configuration
getConfiguration, getInstance, getInstance, getInstance, getParameters, getProvider, getType, setConfiguration
-
-
-
-
Method Detail
-
init
public void init() throws InterruptedException
- Throws:
InterruptedException
-
close
public void close()
-
getAppConfigurationEntry
public AppConfigurationEntry[] getAppConfigurationEntry(String name)
- Specified by:
getAppConfigurationEntry
in classConfiguration
-
refresh
public void refresh()
- Overrides:
refresh
in classConfiguration
-
-