Class EnduranceTrioAuthEntryPoint
java.lang.Object
com.endurancetrio.app.common.security.entrypoint.EnduranceTrioAuthEntryPoint
- All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint
@Component
public class EnduranceTrioAuthEntryPoint
extends Object
implements org.springframework.security.web.AuthenticationEntryPoint
Custom AuthenticationEntryPoint that delegates exception handling to a HandlerExceptionResolver.
This allows centralized exception handling via @ControllerAdvice even for authentication errors.
-
Constructor Summary
ConstructorsConstructorDescriptionEnduranceTrioAuthEntryPoint(org.springframework.web.servlet.HandlerExceptionResolver resolver) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommence(@NonNull jakarta.servlet.http.HttpServletRequest request, @NonNull jakarta.servlet.http.HttpServletResponse response, @NonNull org.springframework.security.core.AuthenticationException authException)
-
Constructor Details
-
EnduranceTrioAuthEntryPoint
public EnduranceTrioAuthEntryPoint(@Qualifier("handlerExceptionResolver") org.springframework.web.servlet.HandlerExceptionResolver resolver)
-
-
Method Details
-
commence
public void commence(@NonNull jakarta.servlet.http.HttpServletRequest request, @NonNull jakarta.servlet.http.HttpServletResponse response, @NonNull org.springframework.security.core.AuthenticationException authException) - Specified by:
commencein interfaceorg.springframework.security.web.AuthenticationEntryPoint
-