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

      Supplier<Optional<String>> secret(Config config)
      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

      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