public interface LoginService
The Login service provides an abstract mechanism for an Authenticator
to check credentials and to create a UserIdentity using the
set IdentityService.
| 限定符和类型 | 方法和说明 |
|---|---|
IdentityService |
getIdentityService()
Get the IdentityService associated with this Login Service.
|
String |
getName() |
org.eclipse.jetty.server.UserIdentity |
login(String username,
Object credentials,
javax.servlet.ServletRequest request)
Login a user.
|
void |
logout(org.eclipse.jetty.server.UserIdentity user) |
void |
setIdentityService(IdentityService service)
Set the IdentityService associated with this Login Service.
|
boolean |
validate(org.eclipse.jetty.server.UserIdentity user)
Validate a user identity.
|
String getName()
org.eclipse.jetty.server.UserIdentity login(String username, Object credentials, javax.servlet.ServletRequest request)
username - The user namecredentials - The users credentialsrequest - TODOboolean validate(org.eclipse.jetty.server.UserIdentity user)
login(String, Object, ServletRequest) is still valid.user - The user to validateIdentityService getIdentityService()
void setIdentityService(IdentityService service)
service - the IdentityService associated with this Login Service.void logout(org.eclipse.jetty.server.UserIdentity user)
Copyright © 2017. All rights reserved.