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