|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthenticationService
AuthenticationService service for authenticating users and getting their roles.
Method Summary | |
---|---|
User |
getUser()
Get the currently authenticated user. |
boolean |
isLoggedIn()
|
User |
login(String username,
String password)
Login with the given username and password, throwing an exception if the login fails. |
void |
logout()
Log out the currently authenticated user. |
Method Detail |
---|
User login(String username, String password)
username
- The username to log in with.password
- The password to authenticate with.
User
.
Implementations
- should throw an AuthenticationException
if authentication fails.boolean isLoggedIn()
void logout()
User getUser()
null
. If no
user is logged in, returns User.ANONYMOUS
.
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |