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
public static final class ScopeValidator.ScopesConfig extends Object implements AbacValidatorConfig
Configuration custom class for scope validator.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ScopeValidator.ScopesConfig
create(Config config)
Create an instance from configuration (of endpoint).static ScopeValidator.ScopesConfig
create(String... scopes)
Create an instance from an array of scopes.static ScopeValidator.ScopesConfig
create(List<ScopeValidator.Scope> scopes)
Create an instance from a list of annotations.List<String>
requiredScopes()
Which scopes are required.
-
-
-
Method Detail
-
create
public static ScopeValidator.ScopesConfig create(String... scopes)
Create an instance from an array of scopes.- Parameters:
scopes
- scopes required- Returns:
- configuration based on this list of scopes
-
create
public static ScopeValidator.ScopesConfig create(List<ScopeValidator.Scope> scopes)
Create an instance from a list of annotations.- Parameters:
scopes
- scope annotations- Returns:
- configuration based on the list
-
create
public static ScopeValidator.ScopesConfig create(Config config)
Create an instance from configuration (of endpoint).- Parameters:
config
- config located on the key of this validator- Returns:
- configuration based on the config
-
-