Package codes.grow.packages.vault
Record Class EncryptBatchResult
java.lang.Object
java.lang.Record
codes.grow.packages.vault.EncryptBatchResult
- Record Components:
ciphertext- ciphertext on successkeyVersion- key version on successreference- echoed referenceerror- error text of a failed item
public record EncryptBatchResult(Optional<String> ciphertext, OptionalInt keyVersion, Optional<String> reference, Optional<String> error)
extends Record
Result of one
Transit.encryptBatch(java.lang.String, java.util.List<codes.grow.packages.vault.EncryptBatchItem>) item (input order). A failed item has error.-
Constructor Summary
ConstructorsConstructorDescriptionEncryptBatchResult(Optional<String> ciphertext, OptionalInt keyVersion, Optional<String> reference, Optional<String> error) Creates an instance of aEncryptBatchResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theciphertextrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thekeyVersionrecord component.Returns the value of thereferencerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EncryptBatchResult
public EncryptBatchResult(Optional<String> ciphertext, OptionalInt keyVersion, Optional<String> reference, Optional<String> error) Creates an instance of aEncryptBatchResultrecord class.- Parameters:
ciphertext- the value for theciphertextrecord componentkeyVersion- the value for thekeyVersionrecord componentreference- the value for thereferencerecord componenterror- the value for theerrorrecord component
-
-
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). -
ciphertext
Returns the value of theciphertextrecord component.- Returns:
- the value of the
ciphertextrecord component
-
keyVersion
Returns the value of thekeyVersionrecord component.- Returns:
- the value of the
keyVersionrecord component
-
reference
Returns the value of thereferencerecord component.- Returns:
- the value of the
referencerecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-