Package io.helidon.security.abac.scope
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 Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.Update builder from configuration.useOrOperator
(boolean useOrOperator) Whether to use "OR" or "AND" (default) operator.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<ScopeValidator.Builder,
ScopeValidator> - Returns:
- instance of the built type
-
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
Update builder from configuration.- Parameters:
config
- config located on key of this validator- Returns:
- updated builder instance
-