public class SpnegoLoginService extends AbstractLifeCycle implements LoginService
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.Listener| Modifier and Type | Field and Description |
|---|---|
protected IdentityService |
_identityService |
protected java.lang.String |
_name |
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING| Constructor and Description |
|---|
SpnegoLoginService() |
SpnegoLoginService(java.lang.String name) |
SpnegoLoginService(java.lang.String name,
java.lang.String config) |
| Modifier and Type | Method and 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)
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, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, 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)
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 © 2013 FuseSource, Corp.. All Rights Reserved.