public class SpnegoLoginService extends AbstractLifeCycle implements LoginService
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.Listener| Modifier and Type | Field and Description |
|---|---|
protected IdentityService |
_identityService |
protected String |
_name |
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING| Constructor and Description |
|---|
SpnegoLoginService() |
SpnegoLoginService(String name) |
SpnegoLoginService(String name,
String config) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
String |
getConfig() |
IdentityService |
getIdentityService()
Get the IdentityService associated with this Login Service.
|
String |
getName() |
UserIdentity |
login(String username,
Object credentials)
username will be null since the credentials will contain all the relevant info
|
void |
logout(UserIdentity user) |
void |
setConfig(String config) |
void |
setIdentityService(IdentityService service)
Set the IdentityService associated with this Login Service.
|
void |
setName(String name) |
boolean |
validate(UserIdentity user)
Validate a user identity.
|
addLifeCycleListener, doStop, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopprotected IdentityService _identityService
protected String _name
public SpnegoLoginService()
public SpnegoLoginService(String name)
public String getName()
getName in interface LoginServicepublic void setName(String name)
public String getConfig()
public void setConfig(String config)
protected void doStart()
throws Exception
doStart in class AbstractLifeCycleExceptionpublic UserIdentity login(String username, Object credentials)
login in interface LoginServiceusername - The user namecredentials - The users credentialspublic boolean validate(UserIdentity user)
LoginServiceLoginService.login(String, Object) 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-2015 Mort Bay Consulting. All Rights Reserved.