Package io.helidon.security.abac.scope
Class ScopeValidator.ScopesConfig
java.lang.Object
io.helidon.security.abac.scope.ScopeValidator.ScopesConfig
- All Implemented Interfaces:
AbacValidatorConfig
- Enclosing class:
- ScopeValidator
Configuration custom class for scope validator.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ScopeValidator.ScopesConfig
Create an instance from configuration (of endpoint).static ScopeValidator.ScopesConfig
Create an instance from an array of scopes.static ScopeValidator.ScopesConfig
create
(List<ScopeValidator.Scope> scopes) Create an instance from a list of annotations.Which scopes are required.
-
Method Details
-
create
Create an instance from an array of scopes.- Parameters:
scopes
- scopes required- Returns:
- configuration based on this list of scopes
-
create
Create an instance from a list of annotations.- Parameters:
scopes
- scope annotations- Returns:
- configuration based on the list
-
create
Create an instance from configuration (of endpoint).- Parameters:
config
- config located on the key of this validator- Returns:
- configuration based on the config
-
requiredScopes
Which scopes are required.- Returns:
- list of scopes in order of definition
-