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.ManagerAuthentication. - login - logout- Author:
- npiedeloup
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Account>getLoggedAccount()Optional<Account>login(AuthenticationToken token)Tries and checks to login.voidlogout()Closes the current session.
-
-
-
Method Detail
-
login
Optional<Account> login(AuthenticationToken token)
Tries and checks to login.- Parameters:
token- the authentification token- Returns:
- Account the user account (Principal)
-
logout
void logout()
Closes the current session.
-
-