LoginService, LifeCyclepublic class SpnegoLoginService extends AbstractLifeCycle implements LoginService
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.Listener| Modifier and Type | Field | Description |
|---|---|---|
protected IdentityService |
_identityService |
|
protected java.lang.String |
_name |
FAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING| Constructor | Description |
|---|---|
SpnegoLoginService() |
|
SpnegoLoginService(java.lang.String name) |
|
SpnegoLoginService(java.lang.String name,
java.lang.String config) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
doStart() |
|
java.lang.String |
getConfig() |
|
IdentityService |
getIdentityService() |
Get the IdentityService associated with this Login Service.
|
java.lang.String |
getName() |
|
UserIdentity |
login(java.lang.String username,
java.lang.Object credentials,
javax.servlet.ServletRequest request) |
username will be null since the credentials will contain all the relevant info
|
void |
logout(UserIdentity user) |
|
void |
setConfig(java.lang.String config) |
|
void |
setIdentityService(IdentityService service) |
Set the IdentityService associated with this Login Service.
|
void |
setName(java.lang.String name) |
|
boolean |
validate(UserIdentity user) |
Validate a user identity.
|
addLifeCycleListener, doStop, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stopprotected IdentityService _identityService
protected java.lang.String _name
public SpnegoLoginService()
public SpnegoLoginService(java.lang.String name)
public SpnegoLoginService(java.lang.String name,
java.lang.String config)
public java.lang.String getName()
getName in interface LoginServicepublic void setName(java.lang.String name)
public java.lang.String getConfig()
public void setConfig(java.lang.String config)
protected void doStart()
throws java.lang.Exception
doStart in class AbstractLifeCyclejava.lang.Exceptionpublic UserIdentity login(java.lang.String username, java.lang.Object credentials, javax.servlet.ServletRequest request)
login in interface LoginServiceusername - The user namecredentials - The users credentialsrequest - TODOpublic boolean validate(UserIdentity user)
LoginServiceLoginService.login(String, Object, ServletRequest) is still valid.validate in interface LoginServiceuser - The user to validatepublic IdentityService getIdentityService()
LoginServicegetIdentityService in interface LoginServicepublic void setIdentityService(IdentityService service)
LoginServicesetIdentityService in interface LoginServiceservice - the IdentityService associated with this Login Service.public void logout(UserIdentity user)
logout in interface LoginServiceCopyright © 1995–2018 Webtide. All rights reserved.