Record Class JeapCryptoContainer
java.lang.Object
java.lang.Record
ch.admin.bit.jeap.crypto.internal.core.model.JeapCryptoContainer
public record JeapCryptoContainer(EncryptedDataKey encryptedDataKey, byte[] nonce, byte[] ciphertext)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionJeapCryptoContainer(EncryptedDataKey encryptedDataKey, byte[] nonce, byte[] ciphertext) Creates an instance of aJeapCryptoContainerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the value of theciphertextrecord component.Returns the value of theencryptedDataKeyrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.byte[]nonce()Returns the value of thenoncerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
JeapCryptoContainer
Creates an instance of aJeapCryptoContainerrecord class.- Parameters:
encryptedDataKey- the value for theencryptedDataKeyrecord componentnonce- the value for thenoncerecord componentciphertext- the value for theciphertextrecord 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. -
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
encryptedDataKey
Returns the value of theencryptedDataKeyrecord component.- Returns:
- the value of the
encryptedDataKeyrecord component
-
nonce
public byte[] nonce()Returns the value of thenoncerecord component.- Returns:
- the value of the
noncerecord component
-
ciphertext
public byte[] ciphertext()Returns the value of theciphertextrecord component.- Returns:
- the value of the
ciphertextrecord component
-