Class ReactiveVaultVersionedKeyValueTemplate
java.lang.Object
org.springframework.vault.core.ReactiveVaultVersionedKeyValueTemplate
- All Implemented Interfaces:
ReactiveVaultKeyValueOperationsSupport, ReactiveVaultVersionedKeyValueOperations
public class ReactiveVaultVersionedKeyValueTemplate
extends Object
implements ReactiveVaultVersionedKeyValueOperations
Default implementation of
ReactiveVaultVersionedKeyValueOperations.- Since:
- 3.1
- Author:
- Timothy R. Weiand
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReactiveVaultVersionedKeyValueTemplate(ReactiveVaultOperations reactiveVaultOperations, String path) Create a newReactiveVaultVersionedKeyValueTemplategivenReactiveVaultOperationsand the mountpath. -
Method Summary
Modifier and TypeMethodDescriptionDelete the secret atpath.delete(String path, Versioned.Version... versionsToDelete) Delete one or moreversionsof the secret atpath.destroy(String path, Versioned.Version... versionsToDelete) Permanently remove the specifiedversionsof the secret atpath.get(String path, Versioned.Version version) Read the requestedVersioned.Versionof the secret atpath.get(String path, Versioned.Version version, Class<T> responseType) Read the requestedVersioned.Versionof the secret atpathand deserialize the secret to the givenresponseType.Enumerate keys from a Vault path.Write theversioned secretatpath.undelete(String path, Versioned.Version... versionsToDelete) Undelete (restore) one or moreversionsof the secret atpath.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReactiveVaultKeyValueOperationsSupport
delete, getApiVersion, listMethods inherited from interface ReactiveVaultVersionedKeyValueOperations
get, get
-
Field Details
-
reactiveVaultOperations
-
-
Constructor Details
-
ReactiveVaultVersionedKeyValueTemplate
public ReactiveVaultVersionedKeyValueTemplate(ReactiveVaultOperations reactiveVaultOperations, String path) Create a newReactiveVaultVersionedKeyValueTemplategivenReactiveVaultOperationsand the mountpath.- Parameters:
reactiveVaultOperations- must not be null.path- must not be empty or null.
-
-
Method Details
-
get
Description copied from interface:ReactiveVaultVersionedKeyValueOperationsRead the requestedVersioned.Versionof the secret atpath.- Specified by:
getin interfaceReactiveVaultVersionedKeyValueOperations- Parameters:
path- must not be null.version- must not be null.- Returns:
- the data. May be null if the path does not exist.
-
get
Description copied from interface:ReactiveVaultVersionedKeyValueOperationsRead the requestedVersioned.Versionof the secret atpathand deserialize the secret to the givenresponseType.- Specified by:
getin interfaceReactiveVaultVersionedKeyValueOperations- Parameters:
path- must not be null.version- must not be null.responseType- must not be null.- Returns:
- the data. May be null if the path does not exist.
-
put
Description copied from interface:ReactiveVaultVersionedKeyValueOperationsWrite theversioned secretatpath.bodymay be either plain secrets (e.g. map) orVersionedobjects. UsingVersionedwill apply versioning for Compare-and-Set (CAS).- Specified by:
putin interfaceReactiveVaultVersionedKeyValueOperations- Parameters:
path- must not be null.body- must not be null.- Returns:
- the resulting
Versioned.Metadata.
-
delete
Description copied from interface:ReactiveVaultVersionedKeyValueOperationsDelete one or moreversionsof the secret atpath.- Specified by:
deletein interfaceReactiveVaultVersionedKeyValueOperations- Parameters:
path- must not be null.versionsToDelete- must not be null or empty.
-
undelete
Description copied from interface:ReactiveVaultVersionedKeyValueOperationsUndelete (restore) one or moreversionsof the secret atpath.- Specified by:
undeletein interfaceReactiveVaultVersionedKeyValueOperations- Parameters:
path- must not be null.versionsToDelete- must not be null or empty.
-
destroy
Description copied from interface:ReactiveVaultVersionedKeyValueOperationsPermanently remove the specifiedversionsof the secret atpath.- Specified by:
destroyin interfaceReactiveVaultVersionedKeyValueOperations- Parameters:
path- must not be null.versionsToDelete- must not be null or empty.
-
opsForKeyValueMetadata
Description copied from interface:ReactiveVaultVersionedKeyValueOperations- Specified by:
opsForKeyValueMetadatain interfaceReactiveVaultVersionedKeyValueOperations- Returns:
- the operations interface to interact with the Vault Key/Value metadata backend
-
list
Description copied from interface:ReactiveVaultKeyValueOperationsSupportEnumerate keys from a Vault path.- Parameters:
path- must not be null.- Returns:
- the data. May be null if the path does not exist.
-
getApiVersion
- Returns:
- the used API version.
-
delete
Description copied from interface:ReactiveVaultKeyValueOperationsSupportDelete the secret atpath.- Specified by:
deletein interfaceReactiveVaultKeyValueOperationsSupport- Parameters:
path- must not be null.
-