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.useConfigurableSpnegoLoginServiceinstead
-
-
Field Summary
Fields Modifier and Type Field Description protected IdentityService_identityServiceDeprecated.protected String_nameDeprecated.
-
Constructor Summary
Constructors Constructor Description SpnegoLoginService()Deprecated.SpnegoLoginService(String name)Deprecated.SpnegoLoginService(String name, String config)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voiddoStart()Deprecated.StringgetConfig()Deprecated.IdentityServicegetIdentityService()Deprecated.Get the IdentityService associated with this Login Service.StringgetName()Deprecated.org.eclipse.jetty.server.UserIdentitylogin(String username, Object credentials, ServletRequest request)Deprecated.username will be null since the credentials will contain all the relevant infovoidlogout(org.eclipse.jetty.server.UserIdentity user)Deprecated.voidsetConfig(String config)Deprecated.voidsetIdentityService(IdentityService service)Deprecated.Set the IdentityService associated with this Login Service.voidsetName(String name)Deprecated.booleanvalidate(org.eclipse.jetty.server.UserIdentity user)Deprecated.Validate a user identity.
-
-
-
Field Detail
-
_identityService
protected IdentityService _identityService
Deprecated.
-
_name
protected String _name
Deprecated.
-
-
Method Detail
-
getName
public String getName()
Deprecated.- Specified by:
getNamein interfaceLoginService- Returns:
- Get the name of the login service (aka Realm name)
-
setName
public void setName(String name)
Deprecated.
-
getConfig
public String getConfig()
Deprecated.
-
setConfig
public void setConfig(String config)
Deprecated.
-
doStart
protected void doStart() throws ExceptionDeprecated.- Overrides:
doStartin classorg.eclipse.jetty.util.component.AbstractLifeCycle- Throws:
Exception
-
login
public org.eclipse.jetty.server.UserIdentity login(String username, Object credentials, 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(org.eclipse.jetty.server.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(org.eclipse.jetty.server.UserIdentity user)
Deprecated.- Specified by:
logoutin interfaceLoginService
-
-