@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.
|
setRequestCache
clearAuthenticationAttributes
determineTargetUrl, getDefaultTargetUrl, getRedirectStrategy, getTargetUrlParameter, handle, isAlwaysUseDefaultTargetUrl, setAlwaysUseDefaultTargetUrl, setDefaultTargetUrl, setRedirectStrategy, setTargetUrlParameter, setUseReferer
public 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.AuthenticationSuccessHandler
onAuthenticationSuccess
in class org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler
IOException
javax.servlet.ServletException
Copyright © 2018. All rights reserved.