Module org.eclipse.jetty.security
Package org.eclipse.jetty.security.jaas
Class PropertyUserStoreManager
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.security.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.StopExceptionNested 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 -
Method Summary
Modifier and TypeMethodDescriptionaddPropertyUserStore(String file, PropertyUserStore store) protected voiddoStart()protected voiddoStop()getPropertyUserStore(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
-
doStop
-