java.lang.Object
de.stklcode.jvault.connector.model.response.embedded.SecretMetadata
All Implemented Interfaces:
Serializable

public final class SecretMetadata extends Object implements Serializable
Embedded metadata for Key-Value v2 secrets.
Since:
0.8, 1.1 implements Serializable
Author:
Stefan Kalscheuer
See Also:
  • Constructor Details

    • SecretMetadata

      public SecretMetadata()
  • Method Details

    • getCreatedTime

      public ZonedDateTime getCreatedTime()
      Returns:
      Time of secret creation.
    • getCurrentVersion

      public Integer getCurrentVersion()
      Returns:
      Current version number.
    • getMaxVersions

      public Integer getMaxVersions()
      Returns:
      Maximum number of versions.
    • getOldestVersion

      public Integer getOldestVersion()
      Returns:
      Oldest available version number.
    • getUpdatedTime

      public ZonedDateTime getUpdatedTime()
      Returns:
      Time of secret update.
    • getVersions

      public Map<Integer,VersionMetadata> getVersions()
      Returns:
      Version of the entry.
    • isCasRequired

      public Boolean isCasRequired()
      Returns:
      CAS required?
      Since:
      1.3
    • getCustomMetadata

      public Map<String,String> getCustomMetadata()
      Returns:
      Custom metadata.
      Since:
      1.3
    • getDeleteVersionAfter

      public String getDeleteVersionAfter()
      Returns:
      time duration to delete version
      Since:
      1.3
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object