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.useConfigurableSpnegoLoginService
instead
-
-
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
-
-
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 java.lang.String
getConfig()
Deprecated.IdentityService
getIdentityService()
Deprecated.Get the IdentityService associated with this Login Service.java.lang.String
getName()
Deprecated.UserIdentity
login(java.lang.String username, java.lang.Object credentials, ServletRequest request)
Deprecated.username will be null since the credentials will contain all the relevant infovoid
logout(UserIdentity user)
Deprecated.void
setConfig(java.lang.String config)
Deprecated.void
setIdentityService(IdentityService service)
Deprecated.Set the IdentityService associated with this Login Service.void
setName(java.lang.String name)
Deprecated.boolean
validate(UserIdentity user)
Deprecated.Validate a user identity.-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Deprecated.- Specified by:
getName
in 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.
-
login
public UserIdentity login(java.lang.String username, java.lang.Object credentials, ServletRequest request)
Deprecated.username will be null since the credentials will contain all the relevant info- Specified by:
login
in 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:LoginService
Validate a user identity. Validate that a UserIdentity previously created by a call toLoginService.login(String, Object, ServletRequest)
is still valid.- Specified by:
validate
in 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:LoginService
Get the IdentityService associated with this Login Service.- Specified by:
getIdentityService
in interfaceLoginService
- Returns:
- the IdentityService associated with this Login Service.
-
setIdentityService
public void setIdentityService(IdentityService service)
Deprecated.Description copied from interface:LoginService
Set the IdentityService associated with this Login Service.- Specified by:
setIdentityService
in interfaceLoginService
- Parameters:
service
- the IdentityService associated with this Login Service.
-
logout
public void logout(UserIdentity user)
Deprecated.- Specified by:
logout
in interfaceLoginService
-
-