Class PropertyUserStoreManager

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.jaas.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, org.eclipse.jetty.util.component.AbstractLifeCycle.StopException

    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, STARTED, STARTING, STOPPED, STOPPING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.jetty.security.PropertyUserStore
    addPropertyUserStore(String file, org.eclipse.jetty.security.PropertyUserStore store)
     
    protected void
     
    protected void
     
    org.eclipse.jetty.security.PropertyUserStore
     

    Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    addEventListener, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop, toString

    Methods inherited from class java.lang.Object

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

    • PropertyUserStoreManager

      public PropertyUserStoreManager()
  • Method Details

    • getPropertyUserStore

      public org.eclipse.jetty.security.PropertyUserStore getPropertyUserStore(String file)
    • addPropertyUserStore

      public org.eclipse.jetty.security.PropertyUserStore addPropertyUserStore(String file, org.eclipse.jetty.security.PropertyUserStore store)
    • doStart

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

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