Interface SecretsProvider<T extends ProviderConfig>

Type Parameters:
T - type of the custom configuration object
All Superinterfaces:
SecurityProvider
All Known Implementing Classes:
ConfigVaultProvider, CubbyholeSecurityProvider, Kv1SecurityProvider, Kv2SecurityProvider

public interface SecretsProvider<T extends ProviderConfig> extends SecurityProvider
Provider that can retrieve secrets.
  • Method Details

    • secret

      @Deprecated(since="4.4.0", forRemoval=true) default Supplier<Optional<String>> secret(Config config)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create secret supplier from configuration.
      Parameters:
      config - config located on the node of the specific secret config node
      Returns:
      supplier to retrieve the secret
    • secret

      default Supplier<Optional<String>> secret(Config config)
      Create secret supplier from configuration.

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

      Parameters:
      config - config located on the node of the specific secret config node
      Returns:
      supplier to retrieve the secret
      Since:
      4.4.0
    • secret

      Supplier<Optional<String>> secret(T providerConfig)
      Create secret supplier from configuration object.
      Parameters:
      providerConfig - configuration of a specific secret
      Returns:
      supplier to retrieve the secret