From 38eb0e03a999d75fac4780c55e30dfec92557479 Mon Sep 17 00:00:00 2001 From: iadgovuser58 <124906646+iadgovuser58@users.noreply.github.com> Date: Thu, 30 May 2024 13:46:41 -0400 Subject: [PATCH] testing stuff --- .../hirs/utils/tpm/eventlog/uefi/UefiGuid.java | 15 +++++++++++++-- .../{vendor-table.json => vendor-table2.json} | 0 2 files changed, 13 insertions(+), 2 deletions(-) rename HIRS_Utils/src/main/resources/{vendor-table.json => vendor-table2.json} (100%) diff --git a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/uefi/UefiGuid.java b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/uefi/UefiGuid.java index 10579908..f77f75bc 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/uefi/UefiGuid.java +++ b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/uefi/UefiGuid.java @@ -4,6 +4,8 @@ import com.eclipsesource.json.JsonObject; import hirs.utils.HexUtils; import hirs.utils.JsonUtils; +import javax.xml.transform.Source; +import javax.xml.transform.stream.StreamSource; import java.io.IOException; import java.math.BigInteger; import java.net.URISyntaxException; @@ -63,9 +65,18 @@ public class UefiGuid { System.out.println("XXXX EMPTYYYYYYY, before trying to grab file from code"); - try { + System.out.println("XXXX getClass: " + getClass()); + System.out.println("XXXX getClassResource: " + getClass().getResource("/vendor-table2.json")); - Path fPath = Paths.get(this.getClass().getResource("vendor-table.json").toURI()); + + try { +// private static final String EK_PUBLIC_PATH = "/tpm2/ek.pub"; + +// Source source = new StreamSource( +// getClass().getClassLoader().getResourceAsStream("identity_transform.xslt")); + + + Path fPath = Paths.get(getClass().getResource("/vendor-table2.json").toURI()); // URL url = ClassLoader.getSystemResources("vendor-table.json").nextElement(); // URL url = ClassLoader.getSystemResources("vendor-table.json"); // Path fPath = Paths.get(url.toURI()); diff --git a/HIRS_Utils/src/main/resources/vendor-table.json b/HIRS_Utils/src/main/resources/vendor-table2.json similarity index 100% rename from HIRS_Utils/src/main/resources/vendor-table.json rename to HIRS_Utils/src/main/resources/vendor-table2.json