Class DPoPAuthenticationEntryPoint

java.lang.Object
org.springframework.security.oauth2.server.resource.web.DPoPAuthenticationEntryPoint
All Implemented Interfaces:
AuthenticationEntryPoint

public final class DPoPAuthenticationEntryPoint extends Object implements AuthenticationEntryPoint
An AuthenticationEntryPoint implementation used to commence authentication for DPoP-protected resource requests.
Since:
7.1
See Also:
  • Constructor Details

    • DPoPAuthenticationEntryPoint

      public DPoPAuthenticationEntryPoint()
  • Method Details

    • commence

      public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthenticationException authenticationException)
      Description copied from interface: AuthenticationEntryPoint
      Commences an authentication scheme.

      ExceptionTranslationFilter will populate the HttpSession attribute named AbstractAuthenticationProcessingFilter.SPRING_SECURITY_SAVED_REQUEST_KEY with the requested target URL before calling this method.

      Implementations should modify the headers on the ServletResponse as necessary to commence the authentication process.

      Specified by:
      commence in interface AuthenticationEntryPoint
      Parameters:
      request - that resulted in an AuthenticationException
      response - so that the user agent can begin authentication
      authenticationException - that caused the invocation