Class AjaxAuthenticationFailureHandler
- java.lang.Object
-
- org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
-
- com.flowable.core.spring.security.web.authentication.AjaxAuthenticationFailureHandler
-
- All Implemented Interfaces:
AuthenticationFailureHandler
public class AjaxAuthenticationFailureHandler extends SimpleUrlAuthenticationFailureHandler
Returns a 401 error code (Unauthorized) to the client, when Ajax authentication fails.
-
-
Field Summary
-
Fields inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
logger
-
-
Constructor Summary
Constructors Constructor Description AjaxAuthenticationFailureHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AuthenticationException exception)
-
Methods inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
getRedirectStrategy, isAllowSessionCreation, isUseForward, saveException, setAllowSessionCreation, setDefaultFailureUrl, setRedirectStrategy, setUseForward
-
-
-
-
Method Detail
-
onAuthenticationFailure
public void onAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AuthenticationException exception) throws IOException, javax.servlet.ServletException
- Specified by:
onAuthenticationFailure
in interfaceAuthenticationFailureHandler
- Overrides:
onAuthenticationFailure
in classSimpleUrlAuthenticationFailureHandler
- Throws:
IOException
javax.servlet.ServletException
-
-