Record Class AES.IV
java.lang.Object
java.lang.Record
br.net.dd.netherwingcore.common.cryptography.AES.IV
- Enclosing class:
AES
Represents an AES Initialization Vector (IV).
Validates the size of the IV matches
AES.IV_SIZE_BYTES.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the IV data by overwriting its byte array with zeroes.byte[]data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IV
public IV(byte[] data) Creates an instance of aIVrecord class.- Parameters:
data- the value for thedatarecord component
-
-
Method Details
-
clear
public void clear()Clears the IV data by overwriting its byte array with zeroes. -
data
public byte[] data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
toString
-
hashCode
-
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).
-