Record Class VaultTesting.InitResult
java.lang.Object
java.lang.Record
codes.grow.packages.vault.testing.VaultTesting.InitResult
- Record Components:
keys- unseal keys (hex); empty with an auto-unseal sealkeysBase64- unseal keys (base64)recoveryKeys- recovery keys (hex), auto-unseal seals onlyrecoveryKeysBase64- recovery keys (base64)rootToken- initial root token
- Enclosing class:
VaultTesting
public static record VaultTesting.InitResult(List<Secret> keys, List<Secret> keysBase64, List<Secret> recoveryKeys, List<Secret> recoveryKeysBase64, Secret rootToken)
extends Record
Result of
VaultTesting.init(codes.grow.packages.vault.VaultClient, int, int). Every key is a redacting Secret.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.keys()Returns the value of thekeysrecord component.Returns the value of thekeysBase64record component.Returns the value of therecoveryKeysrecord component.Returns the value of therecoveryKeysBase64record component.Returns the value of therootTokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InitResult
public InitResult(List<Secret> keys, List<Secret> keysBase64, List<Secret> recoveryKeys, List<Secret> recoveryKeysBase64, Secret rootToken) Creates the record; lists are copied.- Parameters:
keys- keyskeysBase64- keys base64recoveryKeys- recovery keysrecoveryKeysBase64- recovery keys base64rootToken- root token
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
keys
Returns the value of thekeysrecord component.- Returns:
- the value of the
keysrecord component
-
keysBase64
Returns the value of thekeysBase64record component.- Returns:
- the value of the
keysBase64record component
-
recoveryKeys
Returns the value of therecoveryKeysrecord component.- Returns:
- the value of the
recoveryKeysrecord component
-
recoveryKeysBase64
Returns the value of therecoveryKeysBase64record component.- Returns:
- the value of the
recoveryKeysBase64record component
-
rootToken
Returns the value of therootTokenrecord component.- Returns:
- the value of the
rootTokenrecord component
-