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

    Constructors
    Constructor
    Description
    EnduranceTrioAuthEntryPoint(org.springframework.web.servlet.HandlerExceptionResolver resolver)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    commence(@NonNull jakarta.servlet.http.HttpServletRequest request, @NonNull jakarta.servlet.http.HttpServletResponse response, @NonNull org.springframework.security.core.AuthenticationException authException)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      commence in interface org.springframework.security.web.AuthenticationEntryPoint