From 37850a6c907cad85adf9444b2b6569af5611f46f Mon Sep 17 00:00:00 2001 From: Cyrus <24922493+cyrus-dev@users.noreply.github.com> Date: Thu, 7 Mar 2024 15:07:32 -0500 Subject: [PATCH] Removed a statement that I'll need to put back in --- .../persist/validation/CredentialValidator.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/validation/CredentialValidator.java b/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/validation/CredentialValidator.java index f86b890d..c0e80809 100644 --- a/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/validation/CredentialValidator.java +++ b/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/validation/CredentialValidator.java @@ -12,12 +12,14 @@ import hirs.attestationca.persist.enums.AppraisalStatus; import lombok.extern.log4j.Log4j2; import org.bouncycastle.cert.X509AttributeCertificateHolder; +import java.awt.*; import java.io.IOException; import java.security.KeyStore; import java.security.KeyStoreException; import java.security.cert.CertificateExpiredException; import java.security.cert.CertificateNotYetValidException; import java.security.cert.X509Certificate; +import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; @@ -265,10 +267,6 @@ public class CredentialValidator extends SupplyChainCredentialValidator { return new AppraisalStatus(FAIL, message); } } - if (componentInfos.isEmpty()) { - message = baseErrorMessage + "a list of device components"; - return new AppraisalStatus(FAIL, message); - } // parse out the provided delta and its specific chain. List origPcComponents = componentResultRepository