Class SecretMetadata
java.lang.Object
codes.grow.packages.vault.secrets.SecretMetadata
Metadata of a secret (never its value).
name is the full name accepted by get.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SecretMetadata.BuilderStarts a builder.Returns the creation time.booleanextra()Returns vendor-specific extra fields.inthashCode()name()Returns the full secret name.path()Returns the folder or path of the secret.tags()Returns the tags or labels.Returns a builder initialised from this metadata.toString()Returns the last update time.version()Returns the current version.versions()Returns the number of stored versions.
-
Method Details
-
builder
Starts a builder.- Parameters:
name- full secret name- Returns:
- a new builder
-
toBuilder
Returns a builder initialised from this metadata.- Returns:
- a new builder
-
name
Returns the full secret name.- Returns:
- the name
-
path
Returns the folder or path of the secret.- Returns:
- the path, or empty
-
version
Returns the current version.- Returns:
- the version, or empty
-
createdAt
Returns the creation time.- Returns:
- the time, or empty
-
updatedAt
Returns the last update time.- Returns:
- the time, or empty
-
tags
Returns the tags or labels.- Returns:
- immutable map
-
versions
Returns the number of stored versions.- Returns:
- the count, or empty
-
extra
Returns vendor-specific extra fields.- Returns:
- immutable map
-
equals
-
hashCode
public int hashCode() -
toString
-