From c2de61ce76679bb7c639fcc822b070c97af23db9 Mon Sep 17 00:00:00 2001 From: iadgovuser59 <133057011+iadgovuser59@users.noreply.github.com> Date: Wed, 17 Apr 2024 12:55:51 -0400 Subject: [PATCH] Changes to UI and hint text --- .../portal/page/utils/CertificateStringMapBuilder.java | 8 ++++++++ .../main/webapp/WEB-INF/jsp/certificate-details.jsp | 10 +++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/utils/CertificateStringMapBuilder.java b/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/utils/CertificateStringMapBuilder.java index 7108b07a..e06216f6 100644 --- a/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/utils/CertificateStringMapBuilder.java +++ b/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/utils/CertificateStringMapBuilder.java @@ -547,6 +547,14 @@ public final class CertificateStringMapBuilder { if (certificate.getHwType() != null) { data.put("hwType", certificate.getHwType()); + String hwTypeReadable; + if (certificate.hasTCGOIDs()) { + hwTypeReadable = "TPM-Bound IDevID"; + } + else { + hwTypeReadable = "Manufacturer Specific"; + } + data.put("hwTypeReadable", hwTypeReadable); } if (certificate.getHwSerialNum() != null) { diff --git a/HIRS_AttestationCAPortal/src/main/webapp/WEB-INF/jsp/certificate-details.jsp b/HIRS_AttestationCAPortal/src/main/webapp/WEB-INF/jsp/certificate-details.jsp index 2de58869..6550ebab 100644 --- a/HIRS_AttestationCAPortal/src/main/webapp/WEB-INF/jsp/certificate-details.jsp +++ b/HIRS_AttestationCAPortal/src/main/webapp/WEB-INF/jsp/certificate-details.jsp @@ -121,17 +121,17 @@
Hardware Module Name
-
Hardware Type${initialData.hwType}
+
Hardware Type${initialData.hwTypeReadable}
Hardware Serial Number:
Hardware Module Name
-
Hardware Type${initialData.hwType}
+
Hardware Type${initialData.hwTypeReadable}
Hardware Serial Number${initialData.hwSerialNum}
@@ -142,7 +142,7 @@
Hardware Module Name
-
Hardware Type${initialData.hwType}
+
Hardware Type${initialData.hwTypeReadable}
Hardware Serial Number:
  • TCG TPM Manufacturer Code: ${initialData.tcgTpmManufacturer}
  • @@ -930,7 +930,7 @@
    -
    TPM Policies ⓘ
    +
    TPM Policies
    ${initialData.tpmPolicies}