Record Class Iso20022Envelope

java.lang.Object
java.lang.Record
co.cryptoservice.sdk.Iso20022Envelope
Record Components:
classical - the classical signature
digestAlgorithm - the payload digest algorithm
messageId - the message identifier
messageType - the ISO 20022 message type
payloadDigest - the payload digest as hex
postQuantum - the post-quantum signature
timestamp - the signing time

public record Iso20022Envelope(ClassicalSignature classical, String digestAlgorithm, String messageId, String messageType, String payloadDigest, PostQuantumSignature postQuantum, String timestamp) extends Record
The envelope member.
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted.
      Specified by:
      toString in class Record
      Returns:
      a description safe to log
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • classical

      public ClassicalSignature classical()
      Returns the value of the classical record component.
      Returns:
      the value of the classical record component
    • digestAlgorithm

      public String digestAlgorithm()
      Returns the value of the digestAlgorithm record component.
      Returns:
      the value of the digestAlgorithm record component
    • messageId

      public String messageId()
      Returns the value of the messageId record component.
      Returns:
      the value of the messageId record component
    • messageType

      public String messageType()
      Returns the value of the messageType record component.
      Returns:
      the value of the messageType record component
    • payloadDigest

      public String payloadDigest()
      Returns the value of the payloadDigest record component.
      Returns:
      the value of the payloadDigest record component
    • postQuantum

      public PostQuantumSignature postQuantum()
      Returns the value of the postQuantum record component.
      Returns:
      the value of the postQuantum record component
    • timestamp

      public String timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component