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
FieldsFields inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringvoidonAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) voidsetDefaultFailureUrl(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:
setDefaultFailureUrlin 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:
onAuthenticationFailurein interfaceorg.springframework.security.web.authentication.AuthenticationFailureHandler- Overrides:
onAuthenticationFailurein classorg.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler- Throws:
IOExceptionjavax.servlet.ServletException
-