Package codes.grow.packages.vault
Record Class EncryptBatchItem
java.lang.Object
java.lang.Record
codes.grow.packages.vault.EncryptBatchItem
- Record Components:
plaintext- bytes to encryptcontext- derivation context, may be nullreference- caller reference echoed in the result, may be null
-
Constructor Summary
ConstructorsConstructorDescriptionEncryptBatchItem(byte[] plaintext, byte[] context, String reference) Creates an instance of aEncryptBatchItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]context()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static EncryptBatchItemAn item without context or reference.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
-
of
An item without context or reference.- Parameters:
plaintext- UTF-8 text- Returns:
- the item
-
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
public byte[] plaintext()Returns the value of theplaintextrecord component.- Returns:
- the value of the
plaintextrecord component
-
context
public byte[] context()Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
reference
Returns the value of thereferencerecord component.- Returns:
- the value of the
referencerecord component
-