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.

This commit is contained in:
Cyrus 2021-01-07 12:51:01 -05:00
parent 90a6e75f59
commit 058c58d208

View File

@ -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");