Package codes.grow.packages.vault
Record Class SealStatus
java.lang.Object
java.lang.Record
codes.grow.packages.vault.SealStatus
- Record Components:
type- seal type, e.g.shamir,awskms,transitinitialized- whether the server is initialisedsealed- whether it is sealedthreshold- keys needed to unseal- number of key sharesprogress- keys entered so farnonce- unseal noncerecoverySeal- whether a recovery seal is usedversion- server versionbuildDate- server build date (RFC 3339 text,""when not reported)clusterName- cluster nameclusterId- cluster idstorageType- 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 Summary
ConstructorsConstructorDescriptionSealStatus(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 aSealStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebuildDaterecord component.Returns the value of theclusterIdrecord component.Returns the value of theclusterNamerecord component.final booleanIndicates whether some other object is "equal to" this one.static SealStatusfrom(com.fasterxml.jackson.databind.JsonNode d) Converts a raw seal-status body.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theinitializedrecord component.nonce()Returns the value of thenoncerecord component.intprogress()Returns the value of theprogressrecord component.booleanReturns the value of therecoverySealrecord component.booleansealed()Returns the value of thesealedrecord component.intshares()Returns the value of thesharesrecord component.Returns the value of thestorageTyperecord component.intReturns the value of thethresholdrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.version()Returns the value of theversionrecord component.
-
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 aSealStatusrecord class.- Parameters:
type- the value for thetyperecord componentinitialized- the value for theinitializedrecord componentsealed- the value for thesealedrecord componentthreshold- the value for thethresholdrecord componentshares- the value for thesharesrecord componentprogress- the value for theprogressrecord componentnonce- the value for thenoncerecord componentrecoverySeal- the value for therecoverySealrecord componentversion- the value for theversionrecord componentbuildDate- the value for thebuildDaterecord componentclusterName- the value for theclusterNamerecord componentclusterId- the value for theclusterIdrecord componentstorageType- the value for thestorageTyperecord component
-
-
Method Details
-
from
Converts a raw seal-status body.- Parameters:
d- the body- Returns:
- the status
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
initialized
public boolean initialized()Returns the value of theinitializedrecord component.- Returns:
- the value of the
initializedrecord component
-
sealed
public boolean sealed()Returns the value of thesealedrecord component.- Returns:
- the value of the
sealedrecord component
-
threshold
public int threshold()Returns the value of thethresholdrecord component.- Returns:
- the value of the
thresholdrecord component
-
progress
public int progress()Returns the value of theprogressrecord component.- Returns:
- the value of the
progressrecord component
-
nonce
Returns the value of thenoncerecord component.- Returns:
- the value of the
noncerecord component
-
recoverySeal
public boolean recoverySeal()Returns the value of therecoverySealrecord component.- Returns:
- the value of the
recoverySealrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
buildDate
Returns the value of thebuildDaterecord component.- Returns:
- the value of the
buildDaterecord component
-
clusterName
Returns the value of theclusterNamerecord component.- Returns:
- the value of the
clusterNamerecord component
-
clusterId
Returns the value of theclusterIdrecord component.- Returns:
- the value of the
clusterIdrecord component
-
storageType
Returns the value of thestorageTyperecord component.- Returns:
- the value of the
storageTyperecord component
-