From e05ee9ebdb85c86adc21c0958ad889a4e8abc8b4 Mon Sep 17 00:00:00 2001 From: Julia Pampus Date: Thu, 20 Apr 2023 09:54:32 +0200 Subject: [PATCH] feat(ContractNegotiation): add checksum (spec) --- .../spi/types/negotiation/ContractNegotiation.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spi/control-plane/contract-spi/src/main/java/org/eclipse/edc/connector/contract/spi/types/negotiation/ContractNegotiation.java b/spi/control-plane/contract-spi/src/main/java/org/eclipse/edc/connector/contract/spi/types/negotiation/ContractNegotiation.java index 3e552166cc4..162f3271138 100644 --- a/spi/control-plane/contract-spi/src/main/java/org/eclipse/edc/connector/contract/spi/types/negotiation/ContractNegotiation.java +++ b/spi/control-plane/contract-spi/src/main/java/org/eclipse/edc/connector/contract/spi/types/negotiation/ContractNegotiation.java @@ -66,6 +66,7 @@ public class ContractNegotiation extends StatefulEntity { private String correlationId; private String counterPartyId; private String counterPartyAddress; + private String checksum; private String protocol; private Type type = CONSUMER; private ContractAgreement contractAgreement; @@ -83,6 +84,10 @@ public String getCounterPartyAddress() { return counterPartyAddress; } + public String getChecksum() { + return checksum; + } + /** * Returns the correlation id sent by the client or null if this is a client-side negotiation. */ @@ -416,6 +421,11 @@ public Builder counterPartyAddress(String address) { return this; } + public Builder checksum(String checksum) { + entity.checksum = checksum; + return this; + } + public Builder correlationId(String id) { entity.correlationId = id; return this;