Interface VaultKeyValueOperationsSupport

All Known Subinterfaces:
VaultKeyValueOperations, VaultVersionedKeyValueOperations
All Known Implementing Classes:
VaultVersionedKeyValueTemplate

public interface VaultKeyValueOperationsSupport
Interface that specifies a basic set of Vault operations using Vault's Key/Value secret backend. Paths used in this operations interface are relative and outgoing requests prepend paths with the according operation-specific prefix.

Since:
2.1
Author:
Mark Paluch
  • Method Details

    • list

      @Nullable List<String> list(String path)
      Enumerate keys from a Vault path.
      Parameters:
      path - must not be null.
      Returns:
      the data. May be null if the path does not exist.
    • get

      @Nullable Object get(String path)
      Read the secret at path.
      Parameters:
      path - must not be null.
      Returns:
      the data. May be null if the path does not exist.
    • delete

      void delete(String path)
      Delete the secret at path.
      Parameters:
      path - must not be null.
    • getApiVersion

      Returns:
      the used API version.