Package org.eclipse.jetty.security
Class HashLoginService
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.security.AbstractLoginService
-
- org.eclipse.jetty.security.HashLoginService
-
- All Implemented Interfaces:
LoginService
,Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,LifeCycle
@Deprecated(since="2021-05-27") public class HashLoginService extends AbstractLoginService
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Properties User Realm.An implementation of UserRealm that stores users and roles in-memory in HashMaps.
Typically these maps are populated by calling the load() method or passing a properties resource to the constructor. The format of the properties file is:
username: password [,rolename ...]
Passwords may be clear text, obfuscated or checksummed. The class com.eclipse.Util.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 OBF:.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.security.AbstractLoginService
AbstractLoginService.RolePrincipal, AbstractLoginService.UserPrincipal
-
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.Container
Container.InheritedListener, Container.Listener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description HashLoginService()
Deprecated.HashLoginService(java.lang.String name)
Deprecated.HashLoginService(java.lang.String name, java.lang.String config)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getConfig()
Deprecated.Resource
getConfigResource()
Deprecated.boolean
isHotReload()
Deprecated.Is hot reload enabled on this user storevoid
setConfig(java.lang.String config)
Deprecated.Load realm users from properties file.void
setHotReload(boolean enable)
Deprecated.Enable Hot Reload of the Property Filevoid
setUserStore(UserStore userStore)
Deprecated.Configure theUserStore
implementation to use.-
Methods inherited from class org.eclipse.jetty.security.AbstractLoginService
getIdentityService, getName, isFullValidate, login, logout, setFullValidate, setIdentityService, setName, toString, validate
-
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, unmanage, updateBean, updateBean, updateBeans
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
-
-
-
Method Detail
-
getConfig
public java.lang.String getConfig()
Deprecated.
-
getConfigResource
@Deprecated public Resource getConfigResource()
Deprecated.
-
setConfig
public void setConfig(java.lang.String config)
Deprecated.Load realm users from properties file.The property file maps usernames to password specs followed by an optional comma separated list of role names.
- Parameters:
config
- uri or url or path to realm properties file
-
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
-
setUserStore
public void setUserStore(UserStore userStore)
Deprecated.Configure theUserStore
implementation to use. If none, for backward compat if none thePropertyUserStore
will be used- Parameters:
userStore
- theUserStore
implementation to use
-
-