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.
|
java.lang.String |
getName() |
UserIdentity |
login(java.lang.String username,
java.lang.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.
|
java.lang.String getName()
UserIdentity login(java.lang.String username, java.lang.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 © 2013 FuseSource, Corp.. All Rights Reserved.