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,org.eclipse.jetty.util.component.LifeCycle
@Deprecated
public class SpnegoLoginService
extends org.eclipse.jetty.util.component.AbstractLifeCycle
implements LoginService
Deprecated.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IdentityServiceDeprecated.protected StringDeprecated.Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.SpnegoLoginService(String name) Deprecated.SpnegoLoginService(String name, String config) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoStart()Deprecated.Deprecated.Deprecated.Get the IdentityService associated with this Login Service.getName()Deprecated.Deprecated.username will be null since the credentials will contain all the relevant infovoidlogout(UserIdentity user) Deprecated.voidDeprecated.voidsetIdentityService(IdentityService service) Deprecated.Set the IdentityService associated with this Login Service.voidDeprecated.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 Details
-
_identityService
Deprecated. -
_name
Deprecated.
-
-
Constructor Details
-
SpnegoLoginService
public SpnegoLoginService()Deprecated. -
SpnegoLoginService
Deprecated. -
SpnegoLoginService
Deprecated.
-
-
Method Details
-
getName
Deprecated.- Specified by:
getNamein interfaceLoginService- Returns:
- Get the name of the login service (aka Realm name)
-
setName
Deprecated. -
getConfig
Deprecated. -
setConfig
Deprecated. -
doStart
Deprecated.- Overrides:
doStartin classorg.eclipse.jetty.util.component.AbstractLifeCycle- Throws:
Exception
-
login
public UserIdentity login(String username, 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
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
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
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
Deprecated.- Specified by:
logoutin interfaceLoginService
-
ConfigurableSpnegoLoginServiceinstead