Package org.eclipse.jetty.jaas
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.AbstractLifeCyclePropertyUserStoreManager 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.
-
-
Constructor Summary
Constructors Constructor Description PropertyUserStoreManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyUserStoreaddPropertyUserStore(java.lang.String file, PropertyUserStore store)protected voiddoStart()protected voiddoStop()PropertyUserStoregetPropertyUserStore(java.lang.String file)
-
-
-
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:
doStartin classorg.eclipse.jetty.util.component.AbstractLifeCycle- Throws:
java.lang.Exception
-
doStop
protected void doStop() throws java.lang.Exception- Overrides:
doStopin classorg.eclipse.jetty.util.component.AbstractLifeCycle- Throws:
java.lang.Exception
-
-