|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoginService
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 | |
---|---|
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. |
Method Detail |
---|
String getName()
UserIdentity login(String username, Object credentials)
username
- The user namecredentials
- The users credentials
boolean validate(UserIdentity user)
login(String, Object)
is still valid.
user
- The user to validate
IdentityService getIdentityService()
void setIdentityService(IdentityService service)
service
- the IdentityService associated with this Login Service.void logout(UserIdentity user)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |