Class RestAuthenticationFailureHandler
java.lang.Object
org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
com.atlassian.crowd.integration.springsecurity.UsernameStoringAuthenticationFailureHandler
com.atlassian.crowd.integration.springsecurity.RestAuthenticationFailureHandler
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationFailureHandler
Failure handler for REST login endpoint. Will respond with UNAUTHORIZED code and JSON response with error.
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.atlassian.crowd.integration.springsecurity.UsernameStoringAuthenticationFailureHandler
LAST_USERNAME_KEY
Fields inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onAuthenticationFailure
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) Methods inherited from class com.atlassian.crowd.integration.springsecurity.UsernameStoringAuthenticationFailureHandler
storeUsername
Methods inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
getRedirectStrategy, isAllowSessionCreation, isUseForward, saveException, setAllowSessionCreation, setDefaultFailureUrl, setRedirectStrategy, setUseForward
-
Constructor Details
-
RestAuthenticationFailureHandler
public RestAuthenticationFailureHandler()
-
-
Method Details
-
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 classUsernameStoringAuthenticationFailureHandler
- Throws:
IOException
javax.servlet.ServletException
-