From fab56eb0e9884c45f759ab67b82953e621b2ae42 Mon Sep 17 00:00:00 2001 From: chubtub <43381989+chubtub@users.noreply.github.com> Date: Fri, 15 Mar 2024 14:37:09 -0400 Subject: [PATCH] Remove commented lines --- .../java/hirs/utils/rim/ReferenceManifestValidator.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/HIRS_Utils/src/main/java/hirs/utils/rim/ReferenceManifestValidator.java b/HIRS_Utils/src/main/java/hirs/utils/rim/ReferenceManifestValidator.java index b0a3b361..95a42d1f 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/rim/ReferenceManifestValidator.java +++ b/HIRS_Utils/src/main/java/hirs/utils/rim/ReferenceManifestValidator.java @@ -220,7 +220,6 @@ public class ReferenceManifestValidator { X509Certificate embeddedCert = parseCertFromPEMString( certElement.item(0).getTextContent()); if (embeddedCert != null) { - //subjectKeyIdentifier = getCertificateSubjectKeyIdentifier(embeddedCert); if (Arrays.equals(embeddedCert.getPublicKey().getEncoded(), encodedPublicKey)) { context = new DOMValidateContext(new X509KeySelector(), nodes.item(0)); @@ -254,14 +253,6 @@ public class ReferenceManifestValidator { */ public boolean validateRim(String signingCertPath) { Element fileElement = (Element) rim.getElementsByTagName("File").item(0); -/* - if (trustStoreFile != null && !trustStoreFile.isEmpty()) { - trustStore = parseCertificatesFromPem(trustStoreFile); - } else { - return failWithError("File <" + trustStoreFile + "> is empty; " + - "a valid, non-empty truststore file is required for validation."); - } -*/ X509Certificate signingCert = parseCertificatesFromPem(signingCertPath).get(0); if (signingCert == null) { return failWithError("Unable to parse the signing cert from " + signingCertPath);