Class 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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.security.auth.login.Configuration

        javax.security.auth.login.Configuration.Parameters
    • 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()  
      • Methods inherited from class javax.security.auth.login.Configuration

        getConfiguration, getInstance, getInstance, getInstance, getParameters, getProvider, getType, setConfiguration
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OpenNMSConfiguration

        public OpenNMSConfiguration()
    • 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 class javax.security.auth.login.Configuration
      • refresh

        public void refresh()
        Overrides:
        refresh in class javax.security.auth.login.Configuration