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
.
Modifier and Type | Method and Description |
---|---|
IdentityService |
getIdentityService()
Get the IdentityService associated with this Login Service.
|
String |
getName() |
UserIdentity |
login(String username,
Object credentials,
ServletRequest request)
Login a user.
|
void |
logout(UserIdentity user) |
void |
setIdentityService(IdentityService service)
Set the IdentityService associated with this Login Service.
|
boolean |
validate(UserIdentity user)
Validate a user identity.
|
String getName()
UserIdentity login(String username, Object credentials, ServletRequest request)
username
- The user namecredentials
- The users credentialsrequest
- TODOboolean validate(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(UserIdentity user)
Copyright © 2010 - 2020 Adobe. All Rights Reserved