Class CustomAuthenticationEntryPointHandler
java.lang.Object
org.trustdeck.security.authentication.handler.CustomAuthenticationEntryPointHandler
- All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint
public class CustomAuthenticationEntryPointHandler
extends Object
implements org.springframework.security.web.AuthenticationEntryPoint
Used to control incoming requests without an access token.
- Author:
- Eric Wündisch and Armin Müller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcommence(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, org.springframework.security.core.AuthenticationException authenticationException) Listen for incoming request and resolve them if no access token is given.
-
Constructor Details
-
CustomAuthenticationEntryPointHandler
public CustomAuthenticationEntryPointHandler()
-
-
Method Details
-
commence
public void commence(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, org.springframework.security.core.AuthenticationException authenticationException) Listen for incoming request and resolve them if no access token is given.- Specified by:
commencein interfaceorg.springframework.security.web.AuthenticationEntryPoint- Parameters:
httpServletRequest- the HttpServletRequest objecthttpServletResponse- the HttpServletResponse objectauthenticationException- the AuthenticationException object
-