Class TreePolicyRequest


  • public final class TreePolicyRequest
    extends PolicyRequest
    A policy request that takes a single resource and is used to render policy decisions for that resource and for all policies that match sub-resources of that resource.
    Since:
    12.0.0
    • Method Detail

      • getResource

        public String getResource()
      • getTreePolicyRequest

        public static TreePolicyRequest getTreePolicyRequest​(org.forgerock.services.context.Context context,
                                                             org.forgerock.json.resource.ActionRequest request,
                                                             SSOTokenManager tokenManager)
                                                      throws EntitlementException
        Gets a tree policy request based on the context and action request.
        Parameters:
        context - the context
        request - the request
        tokenManager - An SSOTokenManager instance.
        Returns:
        a tree policy request
        Throws:
        EntitlementException - should creating a tree policy request fail