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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      commence in interface org.springframework.security.web.AuthenticationEntryPoint
      Parameters:
      httpServletRequest - the HttpServletRequest object
      httpServletResponse - the HttpServletResponse object
      authenticationException - the AuthenticationException object