From 058c58d208cbbead27a09beb6a5be8aa8c78d11e Mon Sep 17 00:00:00 2001 From: Cyrus <24922493+cyrus-dev@users.noreply.github.com> Date: Thu, 7 Jan 2021 12:51:01 -0500 Subject: [PATCH] Updated the begin validity date check for the base and delta so that it is only an error if the delta begin date is older than the platform. Equal is allowed. --- .../attestationca/service/SupplyChainValidationServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HIRS_AttestationCA/src/main/java/hirs/attestationca/service/SupplyChainValidationServiceImpl.java b/HIRS_AttestationCA/src/main/java/hirs/attestationca/service/SupplyChainValidationServiceImpl.java index e41720da..65b268e9 100644 --- a/HIRS_AttestationCA/src/main/java/hirs/attestationca/service/SupplyChainValidationServiceImpl.java +++ b/HIRS_AttestationCA/src/main/java/hirs/attestationca/service/SupplyChainValidationServiceImpl.java @@ -186,7 +186,7 @@ public class SupplyChainValidationServiceImpl implements SupplyChainValidationSe for (PlatformCredential pc : pcs) { int result = pc.getBeginValidity() .compareTo(baseCredential.getBeginValidity()); - if (!pc.isBase() && (result <= 0)) { + if (!pc.isBase() && (result > 0)) { pcErrorMessage = String.format("%s%s%n", pcErrorMessage, "Delta Certificate's validity " + "date is not after Base");