Package io.helidon.security.abac.role
Class RoleValidatorService
- java.lang.Object
-
- io.helidon.security.abac.role.RoleValidatorService
-
- All Implemented Interfaces:
AbacValidatorService
public class RoleValidatorService extends Object implements AbacValidatorService
Java service forRoleValidator
ABAC security provider.
-
-
Constructor Summary
Constructors Constructor Description RoleValidatorService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
configKey()
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:AbacValidatorService
Key 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:
configKey
in interfaceAbacValidatorService
- Returns:
- name of the configuration key
-
instantiate
public AbacValidator<? extends AbacValidatorConfig> instantiate(Config config)
Description copied from interface:AbacValidatorService
Create a new instance of the validator based on the configuration provided. The config is located at the config key of this provider.- Specified by:
instantiate
in interfaceAbacValidatorService
- Parameters:
config
- Config with provider configuration- Returns:
- validator instance created from the
Config
provided
-
-