Class RequestMatcherDelegatingAuthorizationManager

  • All Implemented Interfaces:
    org.springframework.security.authorization.AuthorizationManager<javax.servlet.http.HttpServletRequest>

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

      • check

        public org.springframework.security.authorization.AuthorizationDecision check​(java.util.function.Supplier<org.springframework.security.core.Authentication> authentication,
                                                                                      javax.servlet.http.HttpServletRequest request)
        Delegates to a specific AuthorizationManager based on a RequestMatcher evaluation.
        Specified by:
        check in interface org.springframework.security.authorization.AuthorizationManager<javax.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