public class PropertyUserStore extends AbstractLifeCycle
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:.
Modifier and Type | Class and Description |
---|---|
static interface |
PropertyUserStore.UserListener
UserListener
|
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Constructor and Description |
---|
PropertyUserStore() |
Modifier and Type | Method and Description |
---|---|
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)
|
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
public String getConfig()
public void setConfig(String config)
public UserIdentity getUserIdentity(String userName)
public Resource getConfigResource() throws IOException
IOException
public void setRefreshInterval(int msec)
public int getRefreshInterval()
protected void doStart() throws Exception
doStart
in class AbstractLifeCycle
Exception
AbstractLifeCycle.doStart()
protected void doStop() throws Exception
doStop
in class AbstractLifeCycle
Exception
AbstractLifeCycle.doStop()
public void registerUserListener(PropertyUserStore.UserListener listener)
Copyright © 1995-2015 Webtide. All Rights Reserved.