protected boolean enforceAnyPolicy(final AuthorizationRequest request, final AuthorizableResource resource) {
        return resource.getPolicies()
            .parallelStream()
            .map(Unchecked.function(policy -> policy.evaluate(resource, request)))
            .allMatch(AuthorizationResult::authorized);
    }
This is {@link DefaultResourceAuthorizer}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-heimdall/src/main/java/org/apereo/cas/heimdall/authorizer/DefaultResourceAuthorizer.java