Class ConfigAwareAuthenticationFailureHandler
java.lang.Object
org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
org.craftercms.engine.util.spring.security.ConfigAwareAuthenticationFailureHandler
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationFailureHandler
public class ConfigAwareAuthenticationFailureHandler
extends org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
Extension of
SimpleUrlAuthenticationFailureHandler
that uses site config to override properties- Since:
- 3.1.5
- Author:
- joseross
-
Field Summary
Fields inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
void
onAuthenticationFailure
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) void
setDefaultFailureUrl
(String defaultFailureUrl) Methods inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
getRedirectStrategy, isAllowSessionCreation, isUseForward, saveException, setAllowSessionCreation, setRedirectStrategy, setUseForward
-
Field Details
-
LOGIN_FAILURE_URL_KEY
- See Also:
-
defaultFailureUrl
-
-
Constructor Details
-
ConfigAwareAuthenticationFailureHandler
public ConfigAwareAuthenticationFailureHandler()
-
-
Method Details
-
determineFailureUrl
-
setDefaultFailureUrl
- Overrides:
setDefaultFailureUrl
in classorg.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
-
onAuthenticationFailure
public void onAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) throws IOException, javax.servlet.ServletException - Specified by:
onAuthenticationFailure
in interfaceorg.springframework.security.web.authentication.AuthenticationFailureHandler
- Overrides:
onAuthenticationFailure
in classorg.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
- Throws:
IOException
javax.servlet.ServletException
-