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
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.security.web.access.AccessDeniedHandlerHandler of every denial that is not a step-up requirement.private final StepUpPropertiesStep-up policy, whose values are advertised in the challenge. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.access.AccessDeniedException accessDeniedException)
-
Field Details
-
delegate
private final org.springframework.security.web.access.AccessDeniedHandler delegateHandler of every denial that is not a step-up requirement. -
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:
handlein interfaceorg.springframework.security.web.access.AccessDeniedHandler- Throws:
IOExceptionjakarta.servlet.ServletException
-