public interface VaultVersionedKeyValueOperations extends VaultKeyValueOperationsSupport
VaultKeyValueOperations
VaultKeyValueOperationsSupport.KeyValueBackend
Modifier and Type | Method and Description |
---|---|
void |
delete(String path,
Versioned.Version... versionsToDelete)
Delete one or more
versions of the secret at path . |
void |
destroy(String path,
Versioned.Version... versionsToDelete)
Permanently remove the specified
versions of the secret at
path . |
default Versioned<Map<String,Object>> |
get(String path)
Read the most recent secret at
path . |
default <T> Versioned<T> |
get(String path,
Class<T> responseType)
Read the most recent secret at
path and deserialize the secret to the given
responseType . |
<T> Versioned<T> |
get(String path,
Versioned.Version version)
Read the requested
Versioned.Version of the secret at path . |
<T> Versioned<T> |
get(String path,
Versioned.Version version,
Class<T> responseType)
Read the requested
Versioned.Version of the secret at path and deserialize
the secret to the given responseType . |
Versioned.Metadata |
put(String path,
Object body)
Write the
versioned secret at path . |
void |
undelete(String path,
Versioned.Version... versionsToDelete)
Undelete (restore) one or more
versions of the secret at
path . |
delete, getApiVersion, list
@Nullable default Versioned<Map<String,Object>> get(String path)
path
.get
in interface VaultKeyValueOperationsSupport
path
- must not be null.@Nullable <T> Versioned<T> get(String path, Versioned.Version version)
Versioned.Version
of the secret at path
.path
- must not be null.version
- must not be null.@Nullable default <T> Versioned<T> get(String path, Class<T> responseType)
path
and deserialize the secret to the given
responseType
.path
- must not be null.responseType
- must not be null.@Nullable <T> Versioned<T> get(String path, Versioned.Version version, Class<T> responseType)
Versioned.Version
of the secret at path
and deserialize
the secret to the given responseType
.path
- must not be null.version
- must not be null.responseType
- must not be null.Versioned.Metadata put(String path, Object body)
versioned secret
at path
. body
may be
either plain secrets (e.g. map) or Versioned
objects. Using
Versioned
will apply versioning for Compare-and-Set (CAS).path
- must not be null.body
- must not be null.Versioned.Metadata
.void delete(String path, Versioned.Version... versionsToDelete)
versions
of the secret at path
.path
- must not be null.versionsToDelete
- must not be null or empty.void undelete(String path, Versioned.Version... versionsToDelete)
versions
of the secret at
path
.path
- must not be null.versionsToDelete
- must not be null or empty.void destroy(String path, Versioned.Version... versionsToDelete)
versions
of the secret at
path
.path
- must not be null.versionsToDelete
- must not be null or empty.Copyright © 2016–2018 Pivotal Software, Inc.. All rights reserved.