Package org.springframework.vault.core
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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Enumeration of supported Key/Value backend API versions. -
Method Summary
-
Method Details
-
list
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
Read the secret atpath
.- Parameters:
path
- must not be null.- Returns:
- the data. May be null if the path does not exist.
-
delete
Delete the secret atpath
.- Parameters:
path
- must not be null.
-
getApiVersion
VaultKeyValueOperationsSupport.KeyValueBackend getApiVersion()- Returns:
- the used API version.
-