Package org.eclipse.jetty.security
Class SpnegoLoginService
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.security.SpnegoLoginService
-
- All Implemented Interfaces:
LoginService,LifeCycle
@Deprecated public class SpnegoLoginService extends AbstractLifeCycle implements LoginService
Deprecated.useConfigurableSpnegoLoginServiceinstead
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Field Summary
Fields Modifier and Type Field Description protected IdentityService_identityServiceDeprecated.protected java.lang.String_nameDeprecated.
-
Constructor Summary
Constructors Constructor Description SpnegoLoginService()Deprecated.SpnegoLoginService(java.lang.String name)Deprecated.SpnegoLoginService(java.lang.String name, java.lang.String config)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voiddoStart()Deprecated.java.lang.StringgetConfig()Deprecated.IdentityServicegetIdentityService()Deprecated.Get the IdentityService associated with this Login Service.java.lang.StringgetName()Deprecated.UserIdentitylogin(java.lang.String username, java.lang.Object credentials, javax.servlet.ServletRequest request)Deprecated.username will be null since the credentials will contain all the relevant infovoidlogout(UserIdentity user)Deprecated.voidsetConfig(java.lang.String config)Deprecated.voidsetIdentityService(IdentityService service)Deprecated.Set the IdentityService associated with this Login Service.voidsetName(java.lang.String name)Deprecated.booleanvalidate(UserIdentity user)Deprecated.Validate a user identity.-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, doStop, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
-
-
-
-
Field Detail
-
_identityService
protected IdentityService _identityService
Deprecated.
-
_name
protected java.lang.String _name
Deprecated.
-
-
Method Detail
-
getName
public java.lang.String getName()
Deprecated.- Specified by:
getNamein interfaceLoginService- Returns:
- Get the name of the login service (aka Realm name)
-
setName
public void setName(java.lang.String name)
Deprecated.
-
getConfig
public java.lang.String getConfig()
Deprecated.
-
setConfig
public void setConfig(java.lang.String config)
Deprecated.
-
doStart
protected void doStart() throws java.lang.ExceptionDeprecated.- Overrides:
doStartin classAbstractLifeCycle- Throws:
java.lang.Exception
-
login
public UserIdentity login(java.lang.String username, java.lang.Object credentials, javax.servlet.ServletRequest request)
Deprecated.username will be null since the credentials will contain all the relevant info- Specified by:
loginin interfaceLoginService- Parameters:
username- The user namecredentials- The users credentialsrequest- TODO- Returns:
- A UserIdentity if the credentials matched, otherwise null
-
validate
public boolean validate(UserIdentity user)
Deprecated.Description copied from interface:LoginServiceValidate a user identity. Validate that a UserIdentity previously created by a call toLoginService.login(String, Object, ServletRequest)is still valid.- Specified by:
validatein interfaceLoginService- Parameters:
user- The user to validate- Returns:
- true if authentication has not been revoked for the user.
-
getIdentityService
public IdentityService getIdentityService()
Deprecated.Description copied from interface:LoginServiceGet the IdentityService associated with this Login Service.- Specified by:
getIdentityServicein interfaceLoginService- Returns:
- the IdentityService associated with this Login Service.
-
setIdentityService
public void setIdentityService(IdentityService service)
Deprecated.Description copied from interface:LoginServiceSet the IdentityService associated with this Login Service.- Specified by:
setIdentityServicein interfaceLoginService- Parameters:
service- the IdentityService associated with this Login Service.
-
logout
public void logout(UserIdentity user)
Deprecated.- Specified by:
logoutin interfaceLoginService
-
-