Package org.eclipse.jetty.security
Class PropertyUserStore
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.security.UserStore
org.eclipse.jetty.security.PropertyUserStore
- All Implemented Interfaces:
EventListener,LifeCycle,PathWatcher.Listener
@Deprecated(since="2021-05-27")
public class PropertyUserStore
extends UserStore
implements PathWatcher.Listener
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
This class monitors a property file of the format mentioned below and notifies registered listeners of the changes to the the given file.
username: password [,rolename ...]
Passwords may be clear text, obfuscated or checksummed.
The class Password should be used
to generate obfuscated passwords or password checksums.
If DIGEST Authentication is used, the password must be in a recoverable format, either plain text or obfuscated.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Get the config (as a string)Deprecated.Get the ConfigPathreference.Deprecated.booleanDeprecated.Is hot reload enabled on this user storevoidDeprecated.voidDeprecated.Registers a listener to be notified of the contents of the property filevoidDeprecated.Set the Config Path from a String reference to a filevoidsetConfigFile(File configFile) Deprecated.Set the Config Path from aFilereferencevoidsetConfigPath(File configFile) Deprecated.voidsetConfigPath(String configFile) Deprecated.voidsetConfigPath(Path configPath) Deprecated.Set the Config PathvoidsetHotReload(boolean enable) Deprecated.Enable Hot Reload of the Property FiletoString()Deprecated.Methods inherited from class org.eclipse.jetty.security.UserStore
addUser, getIdentityService, getKnownUserIdentities, getUserIdentity, removeUserMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
-
Constructor Details
-
PropertyUserStore
public PropertyUserStore()Deprecated.
-
-
Method Details
-
getConfig
Deprecated.Get the config (as a string)- Returns:
- the config path as a string
-
setConfig
Deprecated.Set the Config Path from a String reference to a file- Parameters:
config- the config file
-
getConfigPath
Deprecated.Get the ConfigPathreference.- Returns:
- the config path
-
setConfigPath
Deprecated.Set the Config Path from a String reference to a file- Parameters:
configFile- the config file can a be a file path or a reference to a file within a jar filejar:file:
-
setConfigPath
Deprecated.Set the Config Path from aFilereference- Parameters:
configFile- the config file
-
setConfigFile
Deprecated.Set the Config Path from aFilereference- Parameters:
configFile- the config file
-
setConfigPath
Deprecated.Set the Config Path- Parameters:
configPath- the config path
-
getConfigResource
Deprecated.- Returns:
- the resource associated with the configured properties file, creating it if necessary
-
isHotReload
public boolean isHotReload()Deprecated.Is hot reload enabled on this user store- Returns:
- true if hot reload was enabled before startup
-
setHotReload
public void setHotReload(boolean enable) Deprecated.Enable Hot Reload of the Property File- Parameters:
enable- true to enable, false to disable
-
toString
Deprecated.- Overrides:
toStringin classAbstractLifeCycle
-
onPathWatchEvent
Deprecated.- Specified by:
onPathWatchEventin interfacePathWatcher.Listener
-
registerUserListener
Deprecated.Registers a listener to be notified of the contents of the property file- Parameters:
listener- the user listener
-