Class ScopeValidator.Builder

java.lang.Object
io.helidon.security.abac.scope.ScopeValidator.Builder
All Implemented Interfaces:
Builder<ScopeValidator.Builder,ScopeValidator>, Supplier<ScopeValidator>
Enclosing class:
ScopeValidator

public static final class ScopeValidator.Builder extends Object implements Builder<ScopeValidator.Builder,ScopeValidator>
A fluent API builder for ScopeValidator.
  • Method Details

    • build

      public ScopeValidator build()
      Description copied from interface: Builder
      Build the instance from this builder.
      Specified by:
      build in interface Builder<ScopeValidator.Builder,ScopeValidator>
      Returns:
      instance of the built type
    • 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