Class Kv2Metadata
- java.lang.Object
-
- io.helidon.integrations.common.rest.ApiJsonParser
-
- io.helidon.integrations.vault.secrets.kv2.Kv2Metadata
-
public class Kv2Metadata extends ApiJsonParser
Metadata of a KV version 2 secret.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instant
createdTime()
Created timestamp.boolean
deleted()
Whether the secret is deleted (can be undeleted).Optional<Instant>
deletedTime()
Deleted timestamp for deleted secrets.boolean
destroyed()
Whether the secret is destroyed (cannot be undeleted).String
toString()
int
version()
Version of the secret.-
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonParser
isPresent, stringValue, toBoolean, toBytesBase64, toDouble, toInstant, toInt, toList, toLong, toMap, toObject, toString
-
-
-
-
Method Detail
-
createdTime
public Instant createdTime()
Created timestamp.- Returns:
- timestamp
-
deletedTime
public Optional<Instant> deletedTime()
Deleted timestamp for deleted secrets.- Returns:
- timestamp or empty if not deleted
-
version
public int version()
Version of the secret.- Returns:
- version
-
deleted
public boolean deleted()
Whether the secret is deleted (can be undeleted).- Returns:
true
if the secret is deleted,false
otherwise
-
destroyed
public boolean destroyed()
Whether the secret is destroyed (cannot be undeleted).- Returns:
true
if the secret is destroyed,false
otherwise
-
-