public class DataSourceLoginService extends MappedLoginService
MappedLoginService.Anonymous, MappedLoginService.KnownUser, MappedLoginService.RolePrincipal, MappedLoginService.UserPrincipal
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
_identityService, _name, _users
Constructor and Description |
---|
DataSourceLoginService() |
DataSourceLoginService(String name) |
DataSourceLoginService(String name,
IdentityService identityService) |
doStart, doStop, getIdentityService, getName, getUsers, logout, putUser, putUser, removeUser, setIdentityService, setName, setUsers, toString, validate
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
public DataSourceLoginService()
public DataSourceLoginService(String name)
public DataSourceLoginService(String name, IdentityService identityService)
public void setJndiName(String jndi)
public String getJndiName()
public void setServer(Server server)
public Server getServer()
public void setCreateTables(boolean createTables)
public boolean getCreateTables()
public void setUserTableName(String name)
public String getUserTableName()
public String getUserTableKey()
public void setUserTableKey(String tableKey)
public String getUserTableUserField()
public void setUserTableUserField(String tableUserField)
public String getUserTablePasswordField()
public void setUserTablePasswordField(String tablePasswordField)
public String getRoleTableName()
public void setRoleTableName(String tableName)
public String getRoleTableKey()
public void setRoleTableKey(String tableKey)
public String getRoleTableRoleField()
public void setRoleTableRoleField(String tableRoleField)
public String getUserRoleTableName()
public void setUserRoleTableName(String roleTableName)
public String getUserRoleTableUserKey()
public void setUserRoleTableUserKey(String roleTableUserKey)
public String getUserRoleTableRoleKey()
public void setUserRoleTableRoleKey(String roleTableRoleKey)
public void setCacheMs(int ms)
public int getCacheMs()
protected void loadUsers()
loadUsers
in class MappedLoginService
protected UserIdentity loadUser(String userName)
loadUser
in class MappedLoginService
userName
- public UserIdentity login(String username, Object credentials)
LoginService
login
in interface LoginService
login
in class MappedLoginService
username
- The user namecredentials
- The users credentialsLoginService.login(java.lang.String, java.lang.Object)
public void initDb() throws NamingException, SQLException
NamingException
SQLException
Copyright © 1995-2015 Webtide. All Rights Reserved.