Package swiss.trustbroker.oidc
Class CustomFailureHandler
java.lang.Object
swiss.trustbroker.oidc.CustomFailureHandler
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationFailureHandler
public class CustomFailureHandler
extends Object
implements org.springframework.security.web.authentication.AuthenticationFailureHandler
-
Constructor Summary
ConstructorsConstructorDescriptionCustomFailureHandler(String type, RelyingPartyDefinitions relyingPartyDefinitions, TrustBrokerProperties trustBrokerProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoidonAuthenticationFailure(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)
-
Constructor Details
-
CustomFailureHandler
public CustomFailureHandler(String type, RelyingPartyDefinitions relyingPartyDefinitions, TrustBrokerProperties trustBrokerProperties)
-
-
Method Details
-
onAuthenticationFailure
public void onAuthenticationFailure(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) throws IOException - Specified by:
onAuthenticationFailurein interfaceorg.springframework.security.web.authentication.AuthenticationFailureHandler- Throws:
IOException
-