Package co.cryptoservice.sdk
Record Class Iso20022Envelope
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.Iso20022Envelope
- Record Components:
classical- the classical signaturedigestAlgorithm- the payload digest algorithmmessageId- the message identifiermessageType- the ISO 20022 message typepayloadDigest- the payload digest as hexpostQuantum- the post-quantum signaturetimestamp- 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 Summary
ConstructorsConstructorDescriptionIso20022Envelope(ClassicalSignature classical, String digestAlgorithm, String messageId, String messageType, String payloadDigest, PostQuantumSignature postQuantum, String timestamp) Checks that every required member is present. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassicalrecord component.Returns the value of thedigestAlgorithmrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themessageIdrecord component.Returns the value of themessageTyperecord component.Returns the value of thepayloadDigestrecord component.Returns the value of thepostQuantumrecord component.Returns the value of thetimestamprecord component.toString()Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted.
-
Constructor Details
-
Iso20022Envelope
public Iso20022Envelope(ClassicalSignature classical, String digestAlgorithm, String messageId, String messageType, String payloadDigest, PostQuantumSignature postQuantum, String timestamp) Checks that every required member is present.- Throws:
NullPointerException- when a required member is null
-
-
Method Details
-
toString
Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted. -
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. -
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). -
classical
Returns the value of theclassicalrecord component.- Returns:
- the value of the
classicalrecord component
-
digestAlgorithm
Returns the value of thedigestAlgorithmrecord component.- Returns:
- the value of the
digestAlgorithmrecord component
-
messageId
Returns the value of themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
messageType
Returns the value of themessageTyperecord component.- Returns:
- the value of the
messageTyperecord component
-
payloadDigest
Returns the value of thepayloadDigestrecord component.- Returns:
- the value of the
payloadDigestrecord component
-
postQuantum
Returns the value of thepostQuantumrecord component.- Returns:
- the value of the
postQuantumrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-