Package org.eclipse.jetty.security
Interface LoginService
- All Known Implementing Classes:
AbstractLoginService,ConfigurableSpnegoLoginService,HashLoginService,JDBCLoginService,SpnegoLoginService
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
Login Service Interface.
The Login service provides an abstract mechanism for an Authenticator
to check credentials and to create a UserIdentity using the
set IdentityService.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Get the IdentityService associated with this Login Service.getName()Deprecated.login(String username, Object credentials, ServletRequest request) Deprecated.Login a user.voidlogout(UserIdentity user) Deprecated.voidsetIdentityService(IdentityService service) Deprecated.Set the IdentityService associated with this Login Service.booleanvalidate(UserIdentity user) Deprecated.Validate a user identity.
-
Method Details
-
getName
String getName()Deprecated.- Returns:
- Get the name of the login service (aka Realm name)
-
login
Deprecated.Login a user.- Parameters:
username- The user namecredentials- The users credentialsrequest- TODO- Returns:
- A UserIdentity if the credentials matched, otherwise null
-
validate
Deprecated.Validate a user identity. Validate that a UserIdentity previously created by a call tologin(String, Object, ServletRequest)is still valid.- Parameters:
user- The user to validate- Returns:
- true if authentication has not been revoked for the user.
-
getIdentityService
IdentityService getIdentityService()Deprecated.Get the IdentityService associated with this Login Service.- Returns:
- the IdentityService associated with this Login Service.
-
setIdentityService
Deprecated.Set the IdentityService associated with this Login Service.- Parameters:
service- the IdentityService associated with this Login Service.
-
logout
Deprecated.
-