Package net.finmath.pontes.erc7573
Class PontesResponseValidator
java.lang.Object
net.finmath.pontes.erc7573.PontesResponseValidator
Strictly validates all fields used to move value or release an outcome key.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordstatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasDispatchWindow(Instant timeout, Duration safetyMargin) Whether a new mutation can still finish within its configured network/clock safety window.booleanhasExpired(Instant timeout) validateCreated(RTGSXvPInitResponse response, PontesTransaction expected) validatePayment(PaymentResponse response, UUID expectedXvpId, PontesKeyRole requestedRole, byte[] expectedHash) validateRetrieved(RTGSXvPInitResponse response, PontesTransaction expected, UUID expectedId, Instant expectedTimeout)
-
Constructor Details
-
PontesResponseValidator
-
-
Method Details
-
hasExpired
-
hasDispatchWindow
Whether a new mutation can still finish within its configured network/clock safety window. -
validateCreated
public PontesResponseValidator.ValidatedXvp validateCreated(RTGSXvPInitResponse response, PontesTransaction expected) -
validateRetrieved
public PontesResponseValidator.ValidatedXvp validateRetrieved(RTGSXvPInitResponse response, PontesTransaction expected, UUID expectedId, Instant expectedTimeout) -
validatePayment
public PontesResponseValidator.ValidatedPayment validatePayment(PaymentResponse response, UUID expectedXvpId, PontesKeyRole requestedRole, byte[] expectedHash)
-