org.eclipse.jetty.security
类 PropertyUserStore

java.lang.Object
  继承者 org.eclipse.jetty.util.component.AbstractLifeCycle
      继承者 org.eclipse.jetty.security.PropertyUserStore
所有已实现的接口:
LifeCycle

public class PropertyUserStore
extends AbstractLifeCycle

PropertyUserStore 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 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:.


嵌套类摘要
static interface PropertyUserStore.UserListener
          UserListener
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的嵌套类/接口
AbstractLifeCycle.AbstractLifeCycleListener
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口
LifeCycle.Listener
 
字段摘要
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
构造方法摘要
PropertyUserStore()
           
 
方法摘要
protected  void doStart()
          Depending on the value of the refresh interval, this method will either start up a scanner thread that will monitor the properties file for changes after it has initially loaded it.
protected  void doStop()
           
 String getConfig()
           
 Resource getConfigResource()
          returns the resource associated with the configured properties file, creating it if necessary
 int getRefreshInterval()
          refresh interval in seconds for how often the properties file should be checked for changes
 UserIdentity getUserIdentity(String userName)
           
 void registerUserListener(PropertyUserStore.UserListener listener)
          registers a listener to be notified of the contents of the property file
 void setConfig(String config)
           
 void setRefreshInterval(int msec)
          sets the refresh interval (in seconds)
 
从类 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, toString, wait, wait, wait
 

构造方法详细信息

PropertyUserStore

public PropertyUserStore()
方法详细信息

getConfig

public String getConfig()

setConfig

public void setConfig(String config)

getUserIdentity

public UserIdentity getUserIdentity(String userName)

getConfigResource

public Resource getConfigResource()
                           throws IOException
returns the resource associated with the configured properties file, creating it if necessary

抛出:
IOException

setRefreshInterval

public void setRefreshInterval(int msec)
sets the refresh interval (in seconds)


getRefreshInterval

public int getRefreshInterval()
refresh interval in seconds for how often the properties file should be checked for changes


doStart

protected void doStart()
                throws Exception
Depending on the value of the refresh interval, this method will either start up a scanner thread that will monitor the properties file for changes after it has initially loaded it. Otherwise the users will be loaded and there will be no active monitoring thread so changes will not be detected.

覆盖:
AbstractLifeCycle 中的 doStart
抛出:
Exception
另请参见:
AbstractLifeCycle.doStart()

doStop

protected void doStop()
               throws Exception
覆盖:
AbstractLifeCycle 中的 doStop
抛出:
Exception
另请参见:
AbstractLifeCycle.doStop()

registerUserListener

public void registerUserListener(PropertyUserStore.UserListener listener)
registers a listener to be notified of the contents of the property file



Copyright © 2013. All Rights Reserved.