Class RequestMatcherDelegatingAuthorizationManager

java.lang.Object
org.springframework.security.web.access.intercept.RequestMatcherDelegatingAuthorizationManager
All Implemented Interfaces:
org.springframework.security.authorization.AuthorizationManager<jakarta.servlet.http.HttpServletRequest>

public final class RequestMatcherDelegatingAuthorizationManager extends Object implements org.springframework.security.authorization.AuthorizationManager<jakarta.servlet.http.HttpServletRequest>
An AuthorizationManager which delegates to a specific AuthorizationManager based on a RequestMatcher evaluation.
Since:
5.5
  • Method Details

    • check

      @Deprecated public org.springframework.security.authorization.AuthorizationDecision check(Supplier<org.springframework.security.core.Authentication> authentication, jakarta.servlet.http.HttpServletRequest request)
      Deprecated.
      please use AuthorizationManager.authorize(Supplier, Object) instead
      Delegates to a specific AuthorizationManager based on a RequestMatcher evaluation.
      Specified by:
      check in interface org.springframework.security.authorization.AuthorizationManager<jakarta.servlet.http.HttpServletRequest>
      Parameters:
      authentication - the Supplier of the Authentication to check
      request - the HttpServletRequest to check
      Returns:
      an AuthorizationDecision. If there is no RequestMatcher matching the request, or the AuthorizationManager could not decide, then null is returned
    • builder

      Returns:
      the new RequestMatcherDelegatingAuthorizationManager.Builder instance