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 ofSimpleUrlAuthenticationFailureHandler
that uses site config to override properties- Since:
- 3.1.5
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected String
defaultFailureUrl
static String
LOGIN_FAILURE_URL_KEY
-
Constructor Summary
Constructors Constructor Description ConfigAwareAuthenticationFailureHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
determineFailureUrl()
void
onAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)
void
setDefaultFailureUrl(String defaultFailureUrl)
-
-
-
Field Detail
-
LOGIN_FAILURE_URL_KEY
public static final String LOGIN_FAILURE_URL_KEY
- See Also:
- Constant Field Values
-
defaultFailureUrl
protected String defaultFailureUrl
-
-
Method Detail
-
determineFailureUrl
protected String determineFailureUrl()
-
setDefaultFailureUrl
public void setDefaultFailureUrl(String defaultFailureUrl)
- 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
-
-