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 Details

    • login

      Tries and checks to login. Login user if successfull.
      Parameters:
      token - the authentification token
      Returns:
      Account the user account (Principal)
    • tryLoginAccount

      Optional<Account> tryLoginAccount(AuthenticationToken token)
      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

      Optional<Account> getLoggedAccount()
      Returns:
      the current logged account