public abstract class AbstractLoginService extends ContainerLifeCycle implements LoginService
Modifier and Type | Class and Description |
---|---|
static class |
AbstractLoginService.RolePrincipal
RolePrincipal
|
static class |
AbstractLoginService.UserPrincipal
UserPrincipal
|
AbstractLifeCycle.AbstractLifeCycleListener
Container.InheritedListener, Container.Listener
LifeCycle.Listener
Modifier and Type | Field and Description |
---|---|
protected boolean |
_fullValidate |
protected IdentityService |
_identityService |
protected java.lang.String |
_name |
Modifier | Constructor and Description |
---|---|
protected |
AbstractLoginService() |
Modifier and Type | Method and Description |
---|---|
IdentityService |
getIdentityService()
Get the IdentityService associated with this Login Service.
|
java.lang.String |
getName() |
boolean |
isFullValidate() |
protected abstract java.lang.String[] |
loadRoleInfo(AbstractLoginService.UserPrincipal user) |
protected abstract AbstractLoginService.UserPrincipal |
loadUserInfo(java.lang.String username) |
UserIdentity |
login(java.lang.String username,
java.lang.Object credentials,
javax.servlet.ServletRequest request)
Login a user.
|
void |
logout(UserIdentity user) |
void |
setFullValidate(boolean fullValidate) |
void |
setIdentityService(IdentityService identityService)
Set the identityService.
|
void |
setName(java.lang.String name)
Set the name.
|
java.lang.String |
toString() |
boolean |
validate(UserIdentity user)
Validate a user identity.
|
addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
dumpContainer, dumpIterable, dumpMapEntries, dumpObjects, dumpSelf, named
protected IdentityService _identityService
protected java.lang.String _name
protected boolean _fullValidate
protected abstract java.lang.String[] loadRoleInfo(AbstractLoginService.UserPrincipal user)
protected abstract AbstractLoginService.UserPrincipal loadUserInfo(java.lang.String username)
public java.lang.String getName()
getName
in interface LoginService
LoginService.getName()
public void setIdentityService(IdentityService identityService)
setIdentityService
in interface LoginService
identityService
- the identityService to setpublic void setName(java.lang.String name)
name
- the name to setpublic java.lang.String toString()
toString
in class AbstractLifeCycle
public UserIdentity login(java.lang.String username, java.lang.Object credentials, javax.servlet.ServletRequest request)
LoginService
login
in interface LoginService
username
- The user namecredentials
- The users credentialsrequest
- TODOLoginService.login(java.lang.String, java.lang.Object, javax.servlet.ServletRequest)
public boolean validate(UserIdentity user)
LoginService
LoginService.login(String, Object, ServletRequest)
is still valid.validate
in interface LoginService
user
- The user to validateLoginService.validate(org.eclipse.jetty.server.UserIdentity)
public IdentityService getIdentityService()
LoginService
getIdentityService
in interface LoginService
LoginService.getIdentityService()
public void logout(UserIdentity user)
logout
in interface LoginService
LoginService.logout(org.eclipse.jetty.server.UserIdentity)
public boolean isFullValidate()
public void setFullValidate(boolean fullValidate)
Copyright © 1995–2019 Webtide. All rights reserved.