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 继承的嵌套类/接口
MappedLoginService.Anonymous, MappedLoginService.KnownUser, MappedLoginService.RolePrincipal, MappedLoginService.UserPrincipal
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的嵌套类/接口
AbstractLifeCycle.AbstractLifeCycleListener
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口
LifeCycle.Listener
 
字段摘要
 
从类 org.eclipse.jetty.security.MappedLoginService 继承的字段
_identityService, _name, _users
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
构造方法摘要
HashLoginService()
           
HashLoginService(String name)
           
HashLoginService(String name, String config)
           
 
方法摘要
protected  void doStart()
           
protected  void doStop()
           
 String getConfig()
           
 void getConfig(String config)
           
 Resource getConfigResource()
           
 int getRefreshInterval()
           
protected  UserIdentity loadUser(String username)
           
 void loadUsers()
           
 void remove(String userName)
           
 void setConfig(String config)
          Load realm users from properties file.
 void setRefreshInterval(int msec)
           
 void update(String userName, Credential credential, String[] roleArray)
           
 
从类 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
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

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.