public class SessionUrlAuthenticationSuccessHandler
extends org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TARGET_URL_SESSION_ATTRIBUTE |
Constructor and Description |
---|
SessionUrlAuthenticationSuccessHandler(String defaultTargetUrl)
Constructor which sets the defaultTargetUrl property of the base class.
|
Modifier and Type | Method and Description |
---|---|
protected String |
determineTargetUrl(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Builds the target URL according to the logic defined in the main class Javadoc.
|
String |
getTargetUrlSessionAttribute() |
void |
setTargetUrlSessionAttribute(String targetUrlSessionAttribute) |
clearAuthenticationAttributes, onAuthenticationSuccess
determineTargetUrl, getDefaultTargetUrl, getRedirectStrategy, getTargetUrlParameter, handle, isAlwaysUseDefaultTargetUrl, setAlwaysUseDefaultTargetUrl, setDefaultTargetUrl, setRedirectStrategy, setTargetUrlParameter, setUseReferer
public static final String DEFAULT_TARGET_URL_SESSION_ATTRIBUTE
public SessionUrlAuthenticationSuccessHandler(String defaultTargetUrl)
defaultTargetUrl
- the URL to which the user should be redirected on successful authentication.protected String determineTargetUrl(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
determineTargetUrl
in class org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
public String getTargetUrlSessionAttribute()
public void setTargetUrlSessionAttribute(String targetUrlSessionAttribute)
targetUrlSessionAttribute
- the targetUrlSessionAttribute to setCopyright © 2016–2023. All rights reserved.