Class ScopeValidator.Builder

    • Method Detail

      • useOrOperator

        public ScopeValidator.Builder useOrOperator​(boolean useOrOperator)
        Whether to use "OR" or "AND" (default) operator.
        Parameters:
        useOrOperator - set to true to validate "at least one scope", set to false to validate "in all scopes", defaults to false
        Returns:
        updated builder instance
      • config

        public ScopeValidator.Builder config​(Config config)
        Update builder from configuration.
        Parameters:
        config - config located on key of this validator
        Returns:
        updated builder instance