public class AuthenticationSuccessRequestSaverHandler extends Object implements org.springframework.security.web.authentication.AuthenticationSuccessHandler
AuthenticationSuccessHandler that just stores an attribute in the request
REQUEST_ATTR_SUCCESS_AUTHENTICATION that can be reused later.| Modifier and Type | Field and Description |
|---|---|
static String |
REQUEST_ATTR_HAS_SUCCESS_AUTHENTICATION
Boolean Request Attribute saying if there is a authentication that has been just succeeded
|
static String |
REQUEST_ATTR_SUCCESS_AUTHENTICATION
Request attribution holding the
Authentication |
| Constructor and Description |
|---|
AuthenticationSuccessRequestSaverHandler() |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.security.core.Authentication |
getSuccessAuthentication(javax.servlet.http.HttpServletRequest request) |
static boolean |
hasRequestSuccessAuthentication(javax.servlet.http.HttpServletRequest request) |
void |
onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication) |
public static final String REQUEST_ATTR_HAS_SUCCESS_AUTHENTICATION
public static final String REQUEST_ATTR_SUCCESS_AUTHENTICATION
Authenticationpublic AuthenticationSuccessRequestSaverHandler()
public static org.springframework.security.core.Authentication getSuccessAuthentication(javax.servlet.http.HttpServletRequest request)
request - the request to checkpublic static boolean hasRequestSuccessAuthentication(javax.servlet.http.HttpServletRequest request)
request - the request to checkpublic 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.AuthenticationSuccessHandlerIOExceptionjavax.servlet.ServletExceptionCopyright © 2019 Communote team. All rights reserved.