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
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<String,
PropertyUserStore> Map of user authentication and authorization information loaded in from a property file.private static final Logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPropertyUserStore
(String file, PropertyUserStore store) protected void
doStart()
protected void
doStop()
getPropertyUserStore
(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
-
Field Details
-
LOG
-
_propertyUserStores
Map of user authentication and authorization information loaded in from a property file. The map is keyed off the location of the file.
-
-
Constructor Details
-
PropertyUserStoreManager
public PropertyUserStoreManager()
-
-
Method Details
-
getPropertyUserStore
-
addPropertyUserStore
-
doStart
- Overrides:
doStart
in classAbstractLifeCycle
- Throws:
Exception
-
doStop
- Overrides:
doStop
in classAbstractLifeCycle
- Throws:
Exception
-