Interface AbacValidatorService

All Known Implementing Classes:
PolicyValidatorService, RoleValidatorService, ScopeValidatorService, TimeValidatorService

public interface AbacValidatorService
Service to use with ServiceLoader to map configuration to AbacValidator.
  • Method Details

    • configKey

      String configKey()
      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:
            ....
       
      Returns:
      name of the configuration key
    • instantiate

      AbacValidator<? extends AbacValidatorConfig> instantiate(Config config)
      Create a new instance of the validator based on the configuration provided. The config is located at the config key of this provider.
      Parameters:
      config - Config with provider configuration
      Returns:
      validator instance created from the Config provided