org.eclipse.jetty.security
类 HashLoginService
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.security.MappedLoginService
org.eclipse.jetty.security.HashLoginService
- 所有已实现的接口:
- LoginService, PropertyUserStore.UserListener, LifeCycle
public class HashLoginService
- extends MappedLoginService
- implements PropertyUserStore.UserListener
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:.
| 从类 org.eclipse.jetty.security.MappedLoginService 继承的方法 |
getIdentityService, getName, getUsers, login, logout, putUser, putUser, removeUser, setIdentityService, setName, setUsers, toString, validate |
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法 |
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
HashLoginService
public HashLoginService()
HashLoginService
public HashLoginService(String name)
HashLoginService
public HashLoginService(String name,
String config)
getConfig
public String getConfig()
getConfig
public void getConfig(String config)
getConfigResource
public Resource getConfigResource()
setConfig
public void setConfig(String config)
- Load realm users from properties file. The property file maps usernames to password specs followed by an optional comma separated list of role names.
- 参数:
config - Filename or url of user properties file.
setRefreshInterval
public void setRefreshInterval(int msec)
getRefreshInterval
public int getRefreshInterval()
loadUser
protected UserIdentity loadUser(String username)
- 指定者:
- 类
MappedLoginService 中的 loadUser
loadUsers
public void loadUsers()
throws IOException
- 指定者:
- 类
MappedLoginService 中的 loadUsers
- 抛出:
IOException
doStart
protected void doStart()
throws Exception
- 覆盖:
- 类
MappedLoginService 中的 doStart
- 抛出:
Exception- 另请参见:
AbstractLifeCycle.doStart()
doStop
protected void doStop()
throws Exception
- 覆盖:
- 类
MappedLoginService 中的 doStop
- 抛出:
Exception- 另请参见:
AbstractLifeCycle.doStop()
update
public void update(String userName,
Credential credential,
String[] roleArray)
- 指定者:
- 接口
PropertyUserStore.UserListener 中的 update
remove
public void remove(String userName)
- 指定者:
- 接口
PropertyUserStore.UserListener 中的 remove
Copyright © 2013. All Rights Reserved.