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

      @Deprecated(since="4.4.0", forRemoval=true) default AbacValidator<? extends AbacValidatorConfig> instantiate(Config config)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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
    • instantiate

      default 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.

      API Note: the default method implementation is provided for backward compatibility and will be removed in the next major version

      Parameters:
      config - Config with provider configuration
      Returns:
      validator instance created from the Config provided
      Since:
      4.4.0