public class HashLoginService extends MappedLoginService implements PropertyUserStore.UserListener
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:.
MappedLoginService.Anonymous, MappedLoginService.KnownUser, MappedLoginService.RolePrincipal, MappedLoginService.UserPrincipalAbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.Listener_identityService, _name, _users_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING| Constructor and Description |
|---|
HashLoginService() |
HashLoginService(String name) |
HashLoginService(String name,
String config) |
| Modifier and Type | Method and Description |
|---|---|
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) |
getIdentityService, getName, getUsers, login, logout, putUser, putUser, removeUser, setIdentityService, setName, setUsers, toString, validateaddLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic HashLoginService()
public HashLoginService(String name)
public String getConfig()
public void getConfig(String config)
public Resource getConfigResource()
public void setConfig(String config)
config - Filename or url of user properties file.public void setRefreshInterval(int msec)
public int getRefreshInterval()
protected UserIdentity loadUser(String username)
loadUser in class MappedLoginServicepublic void loadUsers()
throws IOException
loadUsers in class MappedLoginServiceIOExceptionprotected void doStart()
throws Exception
doStart in class MappedLoginServiceExceptionAbstractLifeCycle.doStart()protected void doStop()
throws Exception
doStop in class MappedLoginServiceExceptionAbstractLifeCycle.doStop()public void update(String userName, Credential credential, String[] roleArray)
update in interface PropertyUserStore.UserListenerpublic void remove(String userName)
remove in interface PropertyUserStore.UserListenerCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.