Record Class Iso20022VerifyResult

java.lang.Object
java.lang.Record
co.cryptoservice.sdk.Iso20022VerifyResult
Record Components:
classicalValid - whether the Ed25519 signature verifies
digestMatches - whether the payload digest matches the envelope
messageId - the envelope's messageId
postQuantumValid - whether the ML-DSA signature verifies
valid - whether the digest and both signatures pass

public record Iso20022VerifyResult(boolean classicalValid, boolean digestMatches, String messageId, boolean postQuantumValid, boolean valid) extends Record
What POST /v2/stream/iso20022 answers: verify ISO 20022 post-quantum dual-signature envelope.
  • Constructor Details

    • Iso20022VerifyResult

      public Iso20022VerifyResult(boolean classicalValid, boolean digestMatches, String messageId, boolean postQuantumValid, boolean valid)
      Creates an instance of a Iso20022VerifyResult record class.
      Parameters:
      classicalValid - the value for the classicalValid record component
      digestMatches - the value for the digestMatches record component
      messageId - the value for the messageId record component
      postQuantumValid - the value for the postQuantumValid record component
      valid - the value for the valid record component
  • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • classicalValid

      public boolean classicalValid()
      Returns the value of the classicalValid record component.
      Returns:
      the value of the classicalValid record component
    • digestMatches

      public boolean digestMatches()
      Returns the value of the digestMatches record component.
      Returns:
      the value of the digestMatches record component
    • messageId

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

      public boolean postQuantumValid()
      Returns the value of the postQuantumValid record component.
      Returns:
      the value of the postQuantumValid record component
    • valid

      public boolean valid()
      Returns the value of the valid record component.
      Returns:
      the value of the valid record component