Record Class EncryptionKey
java.lang.Object
java.lang.Record
io.trino.filesystem.encryption.EncryptionKey
-
Constructor Summary
ConstructorsConstructorDescriptionEncryptionKey(byte[] key, String algorithm) Creates an instance of aEncryptionKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgorithmrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.byte[]key()Returns the value of thekeyrecord component.static EncryptionKeytoString()Returns a string representation of this record class.
-
Constructor Details
-
EncryptionKey
Creates an instance of aEncryptionKeyrecord class.- Parameters:
key- the value for thekeyrecord componentalgorithm- the value for thealgorithmrecord component
-
-
Method Details
-
randomAes256
-
toString
-
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
-
key
public byte[] key()Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
algorithm
Returns the value of thealgorithmrecord component.- Returns:
- the value of the
algorithmrecord component
-