Class IridaPostAuthenticationFailureHandler
- java.lang.Object
-
- org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
-
- ca.corefacility.bioinformatics.irida.ria.security.IridaPostAuthenticationFailureHandler
-
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationFailureHandler
@Component public class IridaPostAuthenticationFailureHandler extends org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
AuthenticationFailureHandler used to handle specific AuthenticationException's. This handler will handle the exception or defer to default handling from SimpleUrlAuthenticationFailureHandler.
-
-
Constructor Summary
Constructors Constructor Description IridaPostAuthenticationFailureHandler(PasswordResetService resetService, UserService userService)
-
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, org.springframework.security.core.AuthenticationException exception)
Custom authentication failure handling for specific AuthenticationException's otherwise default toSimpleUrlAuthenticationFailureHandler
behaviour.
-
-
-
Constructor Detail
-
IridaPostAuthenticationFailureHandler
@Autowired public IridaPostAuthenticationFailureHandler(PasswordResetService resetService, UserService userService)
-
-
Method Detail
-
onAuthenticationFailure
public void onAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) throws java.io.IOException, javax.servlet.ServletException
Custom authentication failure handling for specific AuthenticationException's otherwise default toSimpleUrlAuthenticationFailureHandler
behaviour.- Specified by:
onAuthenticationFailure
in interfaceorg.springframework.security.web.authentication.AuthenticationFailureHandler
- Overrides:
onAuthenticationFailure
in classorg.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
- Throws:
java.io.IOException
javax.servlet.ServletException
-
-