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
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, AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddPropertyUserStore
(String file, PropertyUserStore store) protected void
doStart()
Method to override to start the lifecycleprotected void
doStop()
Method to override to stop the lifecyclegetPropertyUserStore
(String file) 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
-
Constructor Details
-
PropertyUserStoreManager
public PropertyUserStoreManager()
-
-
Method Details
-
getPropertyUserStore
-
addPropertyUserStore
-
doStart
Description copied from class:AbstractLifeCycle
Method to override to start the lifecycle- Overrides:
doStart
in classAbstractLifeCycle
- Throws:
AbstractLifeCycle.StopException
- If thrown, the lifecycle will immediately be stopped.Exception
- If there was a problem starting. Will cause a transition to FAILED state
-
doStop
Description copied from class:AbstractLifeCycle
Method to override to stop the lifecycle- Overrides:
doStop
in classAbstractLifeCycle
- Throws:
Exception
- If there was a problem stopping. Will cause a transition to FAILED state
-