Package codes.grow.packages.vault
Record Class DecryptBatchResult
java.lang.Object
java.lang.Record
codes.grow.packages.vault.DecryptBatchResult
- Record Components:
plaintext- decrypted bytes on successreference- echoed referenceerror- error text of a failed item
public record DecryptBatchResult(Optional<byte[]> plaintext, Optional<String> reference, Optional<String> error)
extends Record
Result of one
Transit.decryptBatch(java.lang.String, java.util.List<codes.grow.packages.vault.DecryptBatchItem>) item (input order). A failed item has error.
The plaintext is never printed.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.Optional<byte[]> Returns the value of theplaintextrecord component.Returns the value of thereferencerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
plaintext
Returns the value of theplaintextrecord component.- Returns:
- the value of the
plaintextrecord 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
-