Class AuthenticationManagerImpl
java.lang.Object
io.vertigo.account.impl.authentication.AuthenticationManagerImpl
- All Implemented Interfaces:
AuthenticationManager,io.vertigo.core.node.component.Component,io.vertigo.core.node.component.CoreComponent,io.vertigo.core.node.component.Manager
Main authentication manager implementation.
- Author:
- npiedeloup
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationManagerImpl(AccountManager accountManager, VSecurityManager securityManager, List<AuthenticationPlugin> authenticationPlugins) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionlogin(AuthenticationToken token) Tries and checks to login.voidlogout()Closes the current session.Tries and checks to login.
-
Constructor Details
-
AuthenticationManagerImpl
@Inject public AuthenticationManagerImpl(AccountManager accountManager, VSecurityManager securityManager, List<AuthenticationPlugin> authenticationPlugins) Constructor.- Parameters:
accountManager- the account ManagersecurityManager- the security ManagerauthenticationPlugins- List of authenticationPlugins
-
-
Method Details
-
login
Tries and checks to login. Login user if successfull.- Specified by:
loginin interfaceAuthenticationManager- Parameters:
token- the authentification token- Returns:
- Account the user account (Principal)
-
getLoggedAccount
- Specified by:
getLoggedAccountin interfaceAuthenticationManager- Returns:
- the current logged account
-
logout
public void logout()Closes the current session.- Specified by:
logoutin interfaceAuthenticationManager
-
tryLoginAccount
Tries and checks to login. (don't change current login user)- Specified by:
tryLoginAccountin interfaceAuthenticationManager- Parameters:
token- the authentification token- Returns:
- Account the user account (Principal)
-