Class PropertyUserStoreManager

  • All Implemented Interfaces:
    org.eclipse.jetty.util.component.LifeCycle

    public class PropertyUserStoreManager
    extends org.eclipse.jetty.util.component.AbstractLifeCycle
    PropertyUserStoreManager Maintains a map of PropertyUserStores, keyed off the location of the property file containing the authentication and authorization information. This class is used to enable the PropertyUserStores to be cached and shared. This is essential for the PropertyFileLoginModules, whose lifecycle is controlled by the JAAS api and instantiated afresh whenever a user needs to be authenticated. Without this class, every PropertyFileLoginModule instantiation would re-read and reload in all the user information just to authenticate a single user.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
      • Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle

        org.eclipse.jetty.util.component.LifeCycle.Listener
    • Field Summary

      • Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PropertyUserStore addPropertyUserStore​(java.lang.String file, PropertyUserStore store)  
      protected void doStart()  
      protected void doStop()  
      PropertyUserStore getPropertyUserStore​(java.lang.String file)  
      • Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
      • Methods inherited from class java.lang.Object

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

      • PropertyUserStoreManager

        public PropertyUserStoreManager()
    • Method Detail

      • getPropertyUserStore

        public PropertyUserStore getPropertyUserStore​(java.lang.String file)
      • doStart

        protected void doStart()
                        throws java.lang.Exception
        Overrides:
        doStart in class org.eclipse.jetty.util.component.AbstractLifeCycle
        Throws:
        java.lang.Exception
      • doStop

        protected void doStop()
                       throws java.lang.Exception
        Overrides:
        doStop in class org.eclipse.jetty.util.component.AbstractLifeCycle
        Throws:
        java.lang.Exception