Package io.helidon.security.abac.scope
Class ScopeValidator.Builder
- java.lang.Object
-
- io.helidon.security.abac.scope.ScopeValidator.Builder
-
- All Implemented Interfaces:
Builder<ScopeValidator>
,Supplier<ScopeValidator>
- Enclosing class:
- ScopeValidator
public static final class ScopeValidator.Builder extends Object implements Builder<ScopeValidator>
A fluent API builder forScopeValidator
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScopeValidator
build()
Build the instance from this builder.ScopeValidator.Builder
config(Config config)
Update builder from configuration.ScopeValidator.Builder
useOrOperator(boolean useOrOperator)
Whether to use "OR" or "AND" (default) operator.
-
-
-
Method Detail
-
build
public ScopeValidator build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<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
-
-