Class PolicyValidator.PolicyConfig.Builder

    • Method Detail

      • statement

        public PolicyValidator.PolicyConfig.Builder statement​(String policyStatement)
        The statement of this policy. Actual value depends on policy engine in use.
        Parameters:
        policyStatement - statement to validate access against
        Returns:
        updated builder instance
      • inherit

        public PolicyValidator.PolicyConfig.Builder inherit​(boolean inherit)
        By default, all policy statements defined on all levels (application, class, method, field) are executed in order. If set to false, on the last policy in the list is executed (e.g. only on method for resource method of Jersey integration, if it is defined on method). NOTE: if there is no statement defined on current level, we will use a statement from nearest level above
        Parameters:
        inherit - whether to inherit policies from annotations defined on higher level
        Returns:
        updated builder instance