Class AuthenticationEntryPointFailureHandler
- java.lang.Object
-
- org.springframework.security.web.authentication.AuthenticationEntryPointFailureHandler
-
- All Implemented Interfaces:
AuthenticationFailureHandler
public class AuthenticationEntryPointFailureHandler extends java.lang.Object implements AuthenticationFailureHandler
Adapts aAuthenticationEntryPoint
into aAuthenticationFailureHandler
- Since:
- 5.2.0
-
-
Constructor Summary
Constructors Constructor Description AuthenticationEntryPointFailureHandler(AuthenticationEntryPoint authenticationEntryPoint)
-
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)
Called when an authentication attempt fails.
-
-
-
Constructor Detail
-
AuthenticationEntryPointFailureHandler
public AuthenticationEntryPointFailureHandler(AuthenticationEntryPoint authenticationEntryPoint)
-
-
Method Detail
-
onAuthenticationFailure
public void onAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AuthenticationException exception) throws java.io.IOException, javax.servlet.ServletException
Description copied from interface:AuthenticationFailureHandler
Called when an authentication attempt fails.- Specified by:
onAuthenticationFailure
in interfaceAuthenticationFailureHandler
- Parameters:
request
- the request during which the authentication attempt occurred.response
- the response.exception
- the exception which was thrown to reject the authentication request.- Throws:
java.io.IOException
javax.servlet.ServletException
-
-