Package io.helidon.security.abac.scope
Class ScopeValidatorService
- java.lang.Object
-
- io.helidon.security.abac.scope.ScopeValidatorService
-
- All Implemented Interfaces:
AbacValidatorService
public class ScopeValidatorService extends Object implements AbacValidatorService
A service to provideScopeValidatortoAbacProvider.
-
-
Constructor Summary
Constructors Constructor Description ScopeValidatorService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringconfigKey()Key of the "root" of configuration of this validator.AbacValidator<? extends AbacValidatorConfig>instantiate(Config config)Create a new instance of the validator based on the configuration provided.
-
-
-
Method Detail
-
configKey
public String configKey()
Description copied from interface:AbacValidatorServiceKey of the "root" of configuration of this validator.Example - scope validator, the configuration in yaml may then be:
security.providers: - abac: fail-on-unvalidated: true scope: ....- Specified by:
configKeyin interfaceAbacValidatorService- Returns:
- name of the configuration key
-
instantiate
public AbacValidator<? extends AbacValidatorConfig> instantiate(Config config)
Description copied from interface:AbacValidatorServiceCreate a new instance of the validator based on the configuration provided. The config is located at the config key of this provider.- Specified by:
instantiatein interfaceAbacValidatorService- Parameters:
config- Config with provider configuration- Returns:
- validator instance created from the
Configprovided
-
-