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 Details

    • 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
    • requiredScopes

      public List<String> requiredScopes()
      Which scopes are required.
      Returns:
      list of scopes in order of definition