public class DefaultVaadinManagedSecurity extends AbstractVaadinSecurity implements VaadinManagedSecurity
VaadinManagedSecurity.| Modifier and Type | Field and Description |
|---|---|
static String |
REINITIALIZE_SESSION_AFTER_LOGIN_PROPERTY |
| Constructor and Description |
|---|
DefaultVaadinManagedSecurity() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearAndReinitializeSession()
Clears the session of all attributes except some internal Vaadin attributes and reinitializes it.
|
Authentication |
getAuthentication()
Gets the authentication token of the current user.
|
protected boolean |
isReinitializeSessionAfterLogin()
Returns whether the current session should be reinitialized after a successful login.
|
Authentication |
login(Authentication authentication)
Tries to login using the specified authentication object.
|
void |
logout()
Logs the user out.
|
void |
logout(String logoutUrl)
Logs the user out and redirects to the specified URL.
|
afterPropertiesSet, getAccessDecisionManager, getApplicationContext, getAuthenticationManager, getRememberMeServices, hasAccessDecisionManager, hasAccessToObject, hasAccessToSecuredMethod, hasAccessToSecuredObject, hasAnyAuthority, hasAuthenticationManager, hasAuthorities, hasAuthority, isAuthenticated, isAuthenticatedAnonymously, isFullyAuthenticated, isRememberMeAuthenticated, login, setApplicationContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasAccessToObject, hasAccessToSecuredMethod, hasAccessToSecuredObject, hasAnyAuthority, hasAuthorities, hasAuthority, isAuthenticated, isAuthenticatedAnonymously, isFullyAuthenticated, isRememberMeAuthenticated, logingetAccessDecisionManager, getApplicationContext, getAuthenticationManager, getRememberMeServices, hasAccessDecisionManager, hasAuthenticationManagerpublic static final String REINITIALIZE_SESSION_AFTER_LOGIN_PROPERTY
protected boolean isReinitializeSessionAfterLogin()
public Authentication login(Authentication authentication) throws AuthenticationException
VaadinSecuritylogin in interface VaadinSecurityauthentication - the authentication object to authenticate, must not be null.Authentication token.AuthenticationException - if authentication fails.protected void clearAndReinitializeSession()
public void logout()
VaadinSecuritylogout in interface VaadinSecuritypublic void logout(String logoutUrl)
VaadinManagedSecuritylogout in interface VaadinManagedSecuritypublic Authentication getAuthentication()
VaadinSecuritygetAuthentication in interface VaadinSecurityAuthentication token stored in the current
SecurityContext, or null.Copyright © 2017. All rights reserved.