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)
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)
username
- The user namecredentials
- The users credentialsboolean validate(UserIdentity user)
login(String, Object)
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 © 1995-2015 Webtide. All Rights Reserved.