Class StepUpAccessDeniedHandler

java.lang.Object
com.irurueta.authserver.resourceserver.api.web.security.StepUpAccessDeniedHandler
All Implemented Interfaces:
org.springframework.security.web.access.AccessDeniedHandler

public class StepUpAccessDeniedHandler extends Object implements org.springframework.security.web.access.AccessDeniedHandler
Answers a StepUpRequiredDecision with 401 and the RFC 9470 challenge (error="insufficient_user_authentication" with the required acr_values and max_age); every other denial goes to the delegate, the RFC 6750 handler.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.springframework.security.web.access.AccessDeniedHandler
    Handler of every denial that is not a step-up requirement.
    private final StepUpProperties
    Step-up policy, whose values are advertised in the challenge.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.access.AccessDeniedException accessDeniedException)
     

    Methods inherited from class java.lang.Object

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

    • delegate

      private final org.springframework.security.web.access.AccessDeniedHandler delegate
      Handler of every denial that is not a step-up requirement.
    • properties

      private final StepUpProperties properties
      Step-up policy, whose values are advertised in the challenge.
  • Constructor Details

    • StepUpAccessDeniedHandler

      public StepUpAccessDeniedHandler()
  • Method Details

    • handle

      public void handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.access.AccessDeniedException accessDeniedException) throws IOException, jakarta.servlet.ServletException
      Specified by:
      handle in interface org.springframework.security.web.access.AccessDeniedHandler
      Throws:
      IOException
      jakarta.servlet.ServletException