Record Class InternalKeyEncapsulationResult
java.lang.Object
java.lang.Record
org.neo4j.driver.internal.encryption.InternalKeyEncapsulationResult
- All Implemented Interfaces:
KeyEncapsulationResult
-
Constructor Summary
ConstructorsConstructorDescriptionInternalKeyEncapsulationResult(byte[] encapsulation, Map<String, String> metadata, SecretKey key) Creates an instance of aInternalKeyEncapsulationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the value of theencapsulationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.metadata()Returns the value of themetadatarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InternalKeyEncapsulationResult
public InternalKeyEncapsulationResult(byte[] encapsulation, Map<String, String> metadata, SecretKey key) Creates an instance of aInternalKeyEncapsulationResultrecord class.- Parameters:
encapsulation- the value for theencapsulationrecord componentmetadata- the value for themetadatarecord componentkey- the value for thekeyrecord component
-
-
Method Details
-
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). -
encapsulation
public byte[] encapsulation()Returns the value of theencapsulationrecord component.- Specified by:
encapsulationin interfaceKeyEncapsulationResult- Returns:
- the value of the
encapsulationrecord component
-
metadata
Returns the value of themetadatarecord component.- Specified by:
metadatain interfaceKeyEncapsulationResult- Returns:
- the value of the
metadatarecord component
-
key
Returns the value of thekeyrecord component.- Specified by:
keyin interfaceKeyEncapsulationResult- Returns:
- the value of the
keyrecord component
-