Class AppAuthenticationEntryPoint

java.lang.Object
com.markvarga21.studentmanager.config.security.AppAuthenticationEntryPoint
All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint

@Component public class AppAuthenticationEntryPoint extends Object implements org.springframework.security.web.AuthenticationEntryPoint
The entry point for the application regarding the authentication.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException)
    This method is used to commence the authentication.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AppAuthenticationEntryPoint

      public AppAuthenticationEntryPoint()
  • Method Details

    • commence

      public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) throws IOException
      This method is used to commence the authentication.
      Specified by:
      commence in interface org.springframework.security.web.AuthenticationEntryPoint
      Parameters:
      request - The HTTP request.
      response - The HTTP response.
      authException - The authentication exception.
      Throws:
      IOException - If an input or output exception occurs.