Record Class AEADEncryptedProperty

java.lang.Object
java.lang.Record
org.neo4j.driver.internal.encryption.AEADEncryptedProperty

public record AEADEncryptedProperty(String profileType, long profileVersion, String profileName, byte[] cipherOutput, byte[] iv, org.neo4j.bolt.connection.codec.value_encoding.ValueEncoder.Encoded encodedAad, String keyId, String typeName, long typeEncodingSchemeMajor, long typeEncodingSchemeMinor) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    AEADEncryptedProperty(String profileType, long profileVersion, String profileName, byte[] cipherOutput, byte[] iv, org.neo4j.bolt.connection.codec.value_encoding.ValueEncoder.Encoded encodedAad, String keyId, String typeName, long typeEncodingSchemeMajor, long typeEncodingSchemeMinor)
    Creates an instance of a AEADEncryptedProperty record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Returns the value of the cipherOutput record component.
    org.neo4j.bolt.connection.codec.value_encoding.ValueEncoder.Encoded
    Returns the value of the encodedAad record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    byte[]
    iv()
    Returns the value of the iv record component.
    Returns the value of the keyId record component.
    Returns the value of the profileName record component.
    Returns the value of the profileType record component.
    long
    Returns the value of the profileVersion record component.
    org.neo4j.bolt.connection.codec.packstream.struct.EncryptedStructure
     
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the typeEncodingSchemeMajor record component.
    long
    Returns the value of the typeEncodingSchemeMinor record component.
    Returns the value of the typeName record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AEADEncryptedProperty

      public AEADEncryptedProperty(String profileType, long profileVersion, String profileName, byte[] cipherOutput, byte[] iv, org.neo4j.bolt.connection.codec.value_encoding.ValueEncoder.Encoded encodedAad, String keyId, String typeName, long typeEncodingSchemeMajor, long typeEncodingSchemeMinor)
      Creates an instance of a AEADEncryptedProperty record class.
      Parameters:
      profileType - the value for the profileType record component
      profileVersion - the value for the profileVersion record component
      profileName - the value for the profileName record component
      cipherOutput - the value for the cipherOutput record component
      iv - the value for the iv record component
      encodedAad - the value for the encodedAad record component
      keyId - the value for the keyId record component
      typeName - the value for the typeName record component
      typeEncodingSchemeMajor - the value for the typeEncodingSchemeMajor record component
      typeEncodingSchemeMinor - the value for the typeEncodingSchemeMinor record component
  • Method Details

    • toEncryptedStruct

      public org.neo4j.bolt.connection.codec.packstream.struct.EncryptedStructure toEncryptedStruct()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • profileType

      public String profileType()
      Returns the value of the profileType record component.
      Returns:
      the value of the profileType record component
    • profileVersion

      public long profileVersion()
      Returns the value of the profileVersion record component.
      Returns:
      the value of the profileVersion record component
    • profileName

      public String profileName()
      Returns the value of the profileName record component.
      Returns:
      the value of the profileName record component
    • cipherOutput

      public byte[] cipherOutput()
      Returns the value of the cipherOutput record component.
      Returns:
      the value of the cipherOutput record component
    • iv

      public byte[] iv()
      Returns the value of the iv record component.
      Returns:
      the value of the iv record component
    • encodedAad

      public org.neo4j.bolt.connection.codec.value_encoding.ValueEncoder.Encoded encodedAad()
      Returns the value of the encodedAad record component.
      Returns:
      the value of the encodedAad record component
    • keyId

      public String keyId()
      Returns the value of the keyId record component.
      Returns:
      the value of the keyId record component
    • typeName

      public String typeName()
      Returns the value of the typeName record component.
      Returns:
      the value of the typeName record component
    • typeEncodingSchemeMajor

      public long typeEncodingSchemeMajor()
      Returns the value of the typeEncodingSchemeMajor record component.
      Returns:
      the value of the typeEncodingSchemeMajor record component
    • typeEncodingSchemeMinor

      public long typeEncodingSchemeMinor()
      Returns the value of the typeEncodingSchemeMinor record component.
      Returns:
      the value of the typeEncodingSchemeMinor record component