Class VaadinAuthenticationFailureHandler
java.lang.Object
de.codecamp.vaadin.security.spring.authentication.VaadinAuthenticationFailureHandler
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationFailureHandler
public class VaadinAuthenticationFailureHandler
extends Object
implements org.springframework.security.web.authentication.AuthenticationFailureHandler
AuthenticationFailureHandler that provides an appropriate AuthenticationResult.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<com.vaadin.flow.server.VaadinSession>getSession(jakarta.servlet.http.HttpServletRequest request) voidonAuthenticationFailure(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)
-
Constructor Details
-
VaadinAuthenticationFailureHandler
public VaadinAuthenticationFailureHandler()
-
-
Method Details
-
onAuthenticationFailure
public void onAuthenticationFailure(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) throws IOException, jakarta.servlet.ServletException - Specified by:
onAuthenticationFailurein interfaceorg.springframework.security.web.authentication.AuthenticationFailureHandler- Throws:
IOExceptionjakarta.servlet.ServletException
-
getSession
protected Optional<com.vaadin.flow.server.VaadinSession> getSession(jakarta.servlet.http.HttpServletRequest request)
-