Top Description Fields Constructors Methods
org.eclipse.jetty.security.jaas

public Class PropertyUserStoreManager

extends AbstractLifeCycle
Class Inheritance
Imports
java.util.HashMap, .Map, .Objects, org.eclipse.jetty.security.PropertyUserStore, org.eclipse.jetty.util.component.AbstractLifeCycle, org.slf4j.Logger, .LoggerFactory

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.

Field Summary

Modifier and TypeField and Description
private Map<String, PropertyUserStore>
_propertyUserStores

Map of user authentication and authorization information loaded in from a property file.

private static final Logger
Inherited from org.eclipse.jetty.util.component.AbstractLifeCycle:
FAILEDSTARTEDSTARTINGSTOPPEDSTOPPING

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public PropertyUserStore
protected void
doStart()

Overrides org.eclipse.jetty.util.component.AbstractLifeCycle.doStart.

Method to override to start the lifecycle
protected void
doStop()

Overrides org.eclipse.jetty.util.component.AbstractLifeCycle.doStop.

Method to override to stop the lifecycle
public PropertyUserStore
Inherited from org.eclipse.jetty.util.component.AbstractLifeCycle:
addEventListenergetEventListenersgetStategetStateisFailedisRunningisStartedisStartingisStoppedisStoppingremoveEventListenersetEventListenersstartstoptoString

Field Detail

_propertyUserStoresback to summary
private Map<String, PropertyUserStore> _propertyUserStores

Map of user authentication and authorization information loaded in from a property file. The map is keyed off the location of the file.

LOGback to summary
private static final Logger LOG

Hides org.eclipse.jetty.util.component.AbstractLifeCycle.LOG.

Constructor Detail

PropertyUserStoreManagerback to summary
public PropertyUserStoreManager()

Method Detail

addPropertyUserStoreback to summary
public PropertyUserStore addPropertyUserStore(String file, PropertyUserStore store)
doStartback to summary
protected void doStart() throws Exception

Overrides org.eclipse.jetty.util.component.AbstractLifeCycle.doStart.

Doc from org.eclipse.jetty.util.component.AbstractLifeCycle.doStart.

Method to override to start the lifecycle

Annotations
@Override
Exceptions
Exception:
If there was a problem starting. Will cause a transition to FAILED state
doStopback to summary
protected void doStop() throws Exception

Overrides org.eclipse.jetty.util.component.AbstractLifeCycle.doStop.

Doc from org.eclipse.jetty.util.component.AbstractLifeCycle.doStop.

Method to override to stop the lifecycle

Annotations
@Override
Exceptions
Exception:
If there was a problem stopping. Will cause a transition to FAILED state
getPropertyUserStoreback to summary
public PropertyUserStore getPropertyUserStore(String file)