Record Class SealStatus

java.lang.Object
java.lang.Record
codes.grow.packages.vault.SealStatus
Record Components:
type - seal type, e.g. shamir, awskms, transit
initialized - whether the server is initialised
sealed - whether it is sealed
threshold - keys needed to unseal
shares - number of key shares
progress - keys entered so far
nonce - unseal nonce
recoverySeal - whether a recovery seal is used
version - server version
buildDate - server build date (RFC 3339 text, "" when not reported)
clusterName - cluster name
clusterId - cluster id
storageType - storage backend, e.g. file, raft

public record SealStatus(String type, boolean initialized, boolean sealed, int threshold, int shares, int progress, String nonce, boolean recoverySeal, String version, String buildDate, String clusterName, String clusterId, String storageType) extends Record
Seal status (GET sys/seal-status, also returned by unseal).
  • Constructor Details

    • SealStatus

      public SealStatus(String type, boolean initialized, boolean sealed, int threshold, int shares, int progress, String nonce, boolean recoverySeal, String version, String buildDate, String clusterName, String clusterId, String storageType)
      Creates an instance of a SealStatus record class.
      Parameters:
      type - the value for the type record component
      initialized - the value for the initialized record component
      sealed - the value for the sealed record component
      threshold - the value for the threshold record component
      shares - the value for the shares record component
      progress - the value for the progress record component
      nonce - the value for the nonce record component
      recoverySeal - the value for the recoverySeal record component
      version - the value for the version record component
      buildDate - the value for the buildDate record component
      clusterName - the value for the clusterName record component
      clusterId - the value for the clusterId record component
      storageType - the value for the storageType record component
  • Method Details

    • from

      public static SealStatus from(com.fasterxml.jackson.databind.JsonNode d)
      Converts a raw seal-status body.
      Parameters:
      d - the body
      Returns:
      the status
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • initialized

      public boolean initialized()
      Returns the value of the initialized record component.
      Returns:
      the value of the initialized record component
    • sealed

      public boolean sealed()
      Returns the value of the sealed record component.
      Returns:
      the value of the sealed record component
    • threshold

      public int threshold()
      Returns the value of the threshold record component.
      Returns:
      the value of the threshold record component
    • shares

      public int shares()
      Returns the value of the shares record component.
      Returns:
      the value of the shares record component
    • progress

      public int progress()
      Returns the value of the progress record component.
      Returns:
      the value of the progress record component
    • nonce

      public String nonce()
      Returns the value of the nonce record component.
      Returns:
      the value of the nonce record component
    • recoverySeal

      public boolean recoverySeal()
      Returns the value of the recoverySeal record component.
      Returns:
      the value of the recoverySeal record component
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • buildDate

      public String buildDate()
      Returns the value of the buildDate record component.
      Returns:
      the value of the buildDate record component
    • clusterName

      public String clusterName()
      Returns the value of the clusterName record component.
      Returns:
      the value of the clusterName record component
    • clusterId

      public String clusterId()
      Returns the value of the clusterId record component.
      Returns:
      the value of the clusterId record component
    • storageType

      public String storageType()
      Returns the value of the storageType record component.
      Returns:
      the value of the storageType record component