|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.security.PropertyUserStore
public class PropertyUserStore
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:.
| Nested Class Summary | |
|---|---|
static interface |
PropertyUserStore.UserListener
UserListener |
| 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.LifeCycle |
|---|
LifeCycle.Listener |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
|---|
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING |
| Constructor Summary | |
|---|---|
PropertyUserStore()
|
|
| Method Summary | |
|---|---|
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()
|
java.lang.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 |
void |
registerUserListener(PropertyUserStore.UserListener listener)
registers a listener to be notified of the contents of the property file |
void |
setConfig(java.lang.String config)
|
void |
setRefreshInterval(int msec)
sets the refresh interval (in seconds) |
| Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
|---|
addLifeCycleListener, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyUserStore()
| Method Detail |
|---|
public java.lang.String getConfig()
public void setConfig(java.lang.String config)
public Resource getConfigResource()
throws java.io.IOException
java.io.IOExceptionpublic void setRefreshInterval(int msec)
public int getRefreshInterval()
protected void doStart()
throws java.lang.Exception
doStart in class AbstractLifeCyclejava.lang.ExceptionAbstractLifeCycle.doStart()
protected void doStop()
throws java.lang.Exception
doStop in class AbstractLifeCyclejava.lang.ExceptionAbstractLifeCycle.doStop()public void registerUserListener(PropertyUserStore.UserListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||