public class SpnegoLoginService extends AbstractLifeCycle implements LoginService
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Modifier and Type | Field and Description |
---|---|
protected IdentityService |
_identityService |
protected String |
_name |
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, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
protected IdentityService _identityService
protected String _name
public SpnegoLoginService()
public SpnegoLoginService(String name)
public String getName()
getName
in interface LoginService
public void setName(String name)
public String getConfig()
public void setConfig(String config)
protected void doStart() throws Exception
doStart
in class AbstractLifeCycle
Exception
public UserIdentity login(String username, Object credentials)
login
in interface LoginService
username
- The user namecredentials
- The users credentialspublic boolean validate(UserIdentity user)
LoginService
LoginService.login(String, Object)
is still valid.validate
in interface LoginService
user
- The user to validatepublic IdentityService getIdentityService()
LoginService
getIdentityService
in interface LoginService
public void setIdentityService(IdentityService service)
LoginService
setIdentityService
in interface LoginService
service
- the IdentityService associated with this Login Service.public void logout(UserIdentity user)
logout
in interface LoginService
Copyright © 1995-2015 Webtide. All Rights Reserved.