@Component(value="authenticationTimeStamper") public class AuthenticationTimeStamper extends org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTH_TIMESTAMP |
| Constructor and Description |
|---|
AuthenticationTimeStamper() |
| Modifier and Type | Method and Description |
|---|---|
void |
onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication)
Set the timestamp on the session to mark when the authentication happened,
useful for calculating authentication age.
|
setRequestCacheclearAuthenticationAttributesdetermineTargetUrl, getDefaultTargetUrl, getRedirectStrategy, getTargetUrlParameter, handle, isAlwaysUseDefaultTargetUrl, setAlwaysUseDefaultTargetUrl, setDefaultTargetUrl, setRedirectStrategy, setTargetUrlParameter, setUseRefererpublic static final String AUTH_TIMESTAMP
public AuthenticationTimeStamper()
public void onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws IOException, javax.servlet.ServletException
onAuthenticationSuccess in interface org.springframework.security.web.authentication.AuthenticationSuccessHandleronAuthenticationSuccess in class org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandlerIOExceptionjavax.servlet.ServletExceptionCopyright © 2018. All rights reserved.