|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Identity
Represents the identity of the current user, and provides an API for authentication and authorization.
| Nested Class Summary | |
|---|---|
static class |
Identity.AuthenticationResult
|
| Method Summary | |
|---|---|
User |
getUser()
|
boolean |
isLoggedIn()
Simple check that returns true if the user is logged in, without attempting to authenticate |
Identity.AuthenticationResult |
login()
Attempts to authenticate the user. |
void |
logout()
Logs out the currently authenticated user |
| Method Detail |
|---|
boolean isLoggedIn()
User getUser()
Identity.AuthenticationResult login()
LoggedInEvent
- raised when authentication is successful
LoginFailedEvent
- raised when authentication fails
AlreadyLoggedInEvent
- raised if the user is already authenticated
void logout()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||