mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-18 20:47:58 +00:00
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:
parent
90a6e75f59
commit
058c58d208
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user