Class UnauthorizedEntryPoint
java.lang.Object
es.samfc.learning.backend.security.handling.UnauthorizedEntryPoint
- All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint
@Component
public class UnauthorizedEntryPoint
extends Object
implements org.springframework.security.web.AuthenticationEntryPoint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
commence
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException)
-
Constructor Details
-
UnauthorizedEntryPoint
public UnauthorizedEntryPoint()
-
-
Method Details
-
commence
public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) throws IOException - Specified by:
commence
in interfaceorg.springframework.security.web.AuthenticationEntryPoint
- Throws:
IOException
-