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 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.
      • getLoggedAccount

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