java.lang.Object
java.lang.Record
it.auties.whatsapp.model.media.MediaKeys
public record MediaKeys(byte[] mediaKey, byte[] iv, byte[] cipherKey, byte[] macKey, byte[] ref)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]
The field for thecipherKey
record component.private static final int
private final byte[]
The field for theiv
record component.private final byte[]
The field for themacKey
record component.private final byte[]
The field for themediaKey
record component.private final byte[]
The field for theref
record component. -
Constructor Summary
ConstructorsConstructorDescriptionMediaKeys
(byte[] mediaKey, byte[] iv, byte[] cipherKey, byte[] macKey, byte[] ref) Creates an instance of aMediaKeys
record class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Returns the value of thecipherKey
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.byte[]
iv()
Returns the value of theiv
record component.byte[]
macKey()
Returns the value of themacKey
record component.byte[]
mediaKey()
Returns the value of themediaKey
record component.static MediaKeys
static MediaKeys
byte[]
ref()
Returns the value of theref
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
mediaKey
private final byte[] mediaKeyThe field for themediaKey
record component. -
iv
private final byte[] ivThe field for theiv
record component. -
cipherKey
private final byte[] cipherKeyThe field for thecipherKey
record component. -
macKey
private final byte[] macKeyThe field for themacKey
record component. -
ref
private final byte[] refThe field for theref
record component. -
EXPANDED_SIZE
private static final int EXPANDED_SIZE- See Also:
-
-
Constructor Details
-
MediaKeys
public MediaKeys(byte[] mediaKey, byte[] iv, byte[] cipherKey, byte[] macKey, byte[] ref) Creates an instance of aMediaKeys
record class.- Parameters:
mediaKey
- the value for themediaKey
record componentiv
- the value for theiv
record componentcipherKey
- the value for thecipherKey
record componentmacKey
- the value for themacKey
record componentref
- the value for theref
record component
-
-
Method Details
-
random
-
of
-
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)
. -
mediaKey
public byte[] mediaKey()Returns the value of themediaKey
record component.- Returns:
- the value of the
mediaKey
record component
-
iv
public byte[] iv()Returns the value of theiv
record component.- Returns:
- the value of the
iv
record component
-
cipherKey
public byte[] cipherKey()Returns the value of thecipherKey
record component.- Returns:
- the value of the
cipherKey
record component
-
macKey
public byte[] macKey()Returns the value of themacKey
record component.- Returns:
- the value of the
macKey
record component
-
ref
public byte[] ref()Returns the value of theref
record component.- Returns:
- the value of the
ref
record component
-