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 seal
keysBase64 - unseal keys (base64)
recoveryKeys - recovery keys (hex), auto-unseal seals only
recoveryKeysBase64 - 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
  • 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 - keys
      keysBase64 - keys base64
      recoveryKeys - recovery keys
      recoveryKeysBase64 - recovery keys base64
      rootToken - root token
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • keys

      public List<Secret> keys()
      Returns the value of the keys record component.
      Returns:
      the value of the keys record component
    • keysBase64

      public List<Secret> keysBase64()
      Returns the value of the keysBase64 record component.
      Returns:
      the value of the keysBase64 record component
    • recoveryKeys

      public List<Secret> recoveryKeys()
      Returns the value of the recoveryKeys record component.
      Returns:
      the value of the recoveryKeys record component
    • recoveryKeysBase64

      public List<Secret> recoveryKeysBase64()
      Returns the value of the recoveryKeysBase64 record component.
      Returns:
      the value of the recoveryKeysBase64 record component
    • rootToken

      public Secret rootToken()
      Returns the value of the rootToken record component.
      Returns:
      the value of the rootToken record component