Interface AuthenticationManager
- All Superinterfaces:
io.vertigo.core.node.component.Component,io.vertigo.core.node.component.CoreComponent,io.vertigo.core.node.component.Manager
- All Known Implementing Classes:
AuthenticationManagerImpl
public interface AuthenticationManager
extends io.vertigo.core.node.component.Manager
Authentication.
- login
- logout
- Author:
- npiedeloup
-
Method Summary
Modifier and TypeMethodDescriptionlogin(AuthenticationToken token) Tries and checks to login.voidlogout()Closes the current session.Tries and checks to login.
-
Method Details
-
login
Tries and checks to login. Login user if successfull.- Parameters:
token- the authentification token- Returns:
- Account the user account (Principal)
-
tryLoginAccount
Tries and checks to login. (don't change current login user)- Parameters:
token- the authentification token- Returns:
- Account the user account (Principal)
-
logout
void logout()Closes the current session. -
getLoggedAccount
- Returns:
- the current logged account
-