Class VaultMetadataResponse
java.lang.Object
org.springframework.vault.support.VaultMetadataResponse
Value object to bind Vault HTTP kv read metadata API responses.
- Since:
- 2.3
- Author:
- Zakaria Amine
-
Nested Class Summary
-
Method Summary
-
Method Details
-
builder
-
isCasRequired
public boolean isCasRequired()- Returns:
- whether compare-and-swap is required (i.e. optimistic locking).
-
getCreatedTime
- Returns:
- the metadata creation time
-
getCurrentVersion
public int getCurrentVersion()- Returns:
- the active secret version
-
getDeleteVersionAfter
- Returns:
- the duration after which a secret is to be deleted.
Period.ZERO
for unlimited duration. Versions prior to Vault 1.2 may returnnull
.
-
getMaxVersions
public int getMaxVersions()- Returns:
- max secret versions accepted by this key
-
getOldestVersion
public int getOldestVersion()- Returns:
- oldest key version
-
getUpdatedTime
- Returns:
- the metadata update time
-
getVersions
Follows the following format. "versions": { "1": { "created_time": "2020-05-18T12:23:09.895587932Z", "deletion_time": "2020-05-18T12:31:00.66257744Z", "destroyed": false }, "2": { "created_time": "2020-05-18T12:23:10.122081788Z", "deletion_time": "", "destroyed": false } }- Returns:
- the key versions and their details
-