Package org.eclipse.jetty.jaas
Class PropertyUserStoreManager
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.jaas.PropertyUserStoreManager
-
- All Implemented Interfaces:
LifeCycle
public class PropertyUserStoreManager extends 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
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description PropertyUserStoreManager()
-
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
-
-
-
-
Method Detail
-
getPropertyUserStore
public PropertyUserStore getPropertyUserStore(java.lang.String file)
-
addPropertyUserStore
public PropertyUserStore addPropertyUserStore(java.lang.String file, PropertyUserStore store)
-
doStart
protected void doStart() throws java.lang.Exception
- Overrides:
doStart
in classAbstractLifeCycle
- Throws:
java.lang.Exception
-
doStop
protected void doStop() throws java.lang.Exception
- Overrides:
doStop
in classAbstractLifeCycle
- Throws:
java.lang.Exception
-
-