From 3374f899406cdfb1657d051ec429a2f172e71dce Mon Sep 17 00:00:00 2001 From: iadgovuser58 <124906646+iadgovuser58@users.noreply.github.com> Date: Tue, 20 Aug 2024 13:29:36 -0400 Subject: [PATCH 1/5] adding NvIndexDynamic event --- .../events/NvIndexDynamicEventLogData.java | 97 +++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/NvIndexDynamicEventLogData.java diff --git a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/NvIndexDynamicEventLogData.java b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/NvIndexDynamicEventLogData.java new file mode 100644 index 00000000..c5d8fbdc --- /dev/null +++ b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/NvIndexDynamicEventLogData.java @@ -0,0 +1,97 @@ +package hirs.utils.tpm.eventlog.events; + +import hirs.utils.HexUtils; + +import java.nio.charset.StandardCharsets; + +/** + * Class to process the NV_INDEX_DYNAMIC_EVENT_LOG_DATA per PFP. + * Per PFP, the first 16 bytes of the structure are a String based identifier (Signature), + * which are a NULL-terminated ASCII string "NvIndexInstance". + * + * HEADERS defined by PFP v1.06 Rev 52. + * Certain fields are common to both ..HEADER and ..HEADER2, and are noted below the structures. + *
+ * typedef struct tdNV_INDEX_DYNAMIC_EVENT_LOG_DATA { + * BYTE Signature[16]; + * UINT16 Version; + * UINT8[6] Reserved; + * UINT64 UID; + * UINT16 DescriptionSize; + * UINT8 Description[DescriptionSize]; + * UINT16 DataSize; + * DEVICE_SECURITY_EVENT_DATA2 Data[DataSize]; + * } NV_INDEX_DYNAMIC_EVENT_LOG_DATA; + *
+ */ +public class NvIndexDynamicEventLogData { + + /** + * Signature (text) data. + */ + private String signature = ""; + + /** + * Human-readable description of the data within this DEVICE_SECURITY_EVENT_DATA/..DATA2 event. + */ + String nvIndexDynamicInfo = ""; + + /** + * NvIndexInstanceEventLogData constructor. + * + * @param eventData byte array holding the event to process. + */ + public NvIndexDynamicEventLogData(final byte[] eventData) { + + byte[] signatureBytes = new byte[16]; + System.arraycopy(eventData, 0, signatureBytes, 0, 16); + signature = new String(signatureBytes, StandardCharsets.UTF_8); + signature = signature.replaceAll("[^\\P{C}\t\r\n]", ""); // remove null characters + + byte[] versionBytes = new byte[2]; + System.arraycopy(eventData, 16, versionBytes, 0, 2); + String nvIndexVersion = HexUtils.byteArrayToHexString(versionBytes); + if (nvIndexVersion.isEmpty()) { + nvIndexVersion = "version not readable"; + } + nvIndexDynamicInfo = " Nv Index Dynamic Signature = " + signature + "\n"; + nvIndexDynamicInfo += " Nv Index Dynamic Version = " + nvIndexVersion + "\n"; + + // 6 bytes of Reserved data + + byte[] uidBytes = new byte[8]; + System.arraycopy(eventData, 24, uidBytes, 0, 8); + String uid = HexUtils.byteArrayToHexString(uidBytes); + nvIndexDynamicInfo += " UID = " + uid + "\n"; + + byte[] descriptionSizeBytes = new byte[2]; + System.arraycopy(eventData, 32, descriptionSizeBytes, 0, 2); + int descriptionSize = HexUtils.leReverseInt(descriptionSizeBytes); + + byte[] descriptionBytes = new byte[descriptionSize]; + System.arraycopy(eventData, 34, descriptionBytes, 0, descriptionSize); + String description = new String(descriptionBytes, StandardCharsets.UTF_8); + description = description.replaceAll("[^\\P{C}\t\r\n]", ""); // remove null characters + nvIndexDynamicInfo += " Description = " + description + "\n"; + + int dataSizeStartByte = 34 + descriptionSize; + byte[] dataSizeBytes = new byte[2]; + System.arraycopy(eventData, dataSizeStartByte, dataSizeBytes, 0, 2); + int dataSize = HexUtils.leReverseInt(dataSizeBytes); + + int dataStartByte = dataSizeStartByte + 2; + byte[] dataBytes = new byte[dataSize]; + System.arraycopy(eventData, dataStartByte, dataBytes, 0, dataSize); + String data = HexUtils.byteArrayToHexString(dataBytes); + nvIndexDynamicInfo += " Data = " + data + "\n"; + } + + /** + * Returns a description of this event. + * + * @return Human-readable description of this event. + */ + public String toString() { + return nvIndexDynamicInfo; + } +} From 6a706d187176b1460f510ec386f8070f38d75556 Mon Sep 17 00:00:00 2001 From: iadgovuser58 <124906646+iadgovuser58@users.noreply.github.com> Date: Tue, 20 Aug 2024 13:39:18 -0400 Subject: [PATCH 2/5] updates to new nv index dynamic event processing --- .../utils/tpm/eventlog/events/EvNoAction.java | 19 +++++++++++++------ .../events/NvIndexDynamicEventLogData.java | 2 +- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/EvNoAction.java b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/EvNoAction.java index 9635b1c7..5e38264d 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/EvNoAction.java +++ b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/EvNoAction.java @@ -10,13 +10,17 @@ import java.nio.charset.StandardCharsets; /** * Class to process the EV_NO_ACTION event. * The first 16 bytes of the event data MUST be a String based identifier (Signature). - * The only currently defined Signatures are - * 1) "Spec ID Event03" + * Currently defined Signatures are + * "Spec ID Event03" * - implies the data is a TCG_EfiSpecIDEvent * - TCG_EfiSpecIDEvent is the first event in a TPM Event Log and is used to determine * if the format of the Log (SHA1 vs Crypto Agile). - * 2) "NvIndexInstance" + * "StartupLocality" + * - implies the data represents locality info (use lookup to interpret) + * "NvIndexInstance" * - implies the data is a NV_INDEX_INSTANCE_EVENT_LOG_DATA + * "NvIndexDynamic" + * - implies the data is a NV_INDEX_DYNAMIC_EVENT_LOG_DATA *
* Notes: * 1. First 16 bytes of the structure is an ASCII with a fixed Length of 16 @@ -74,10 +78,13 @@ public class EvNoAction { } else if (signature.contains("NvIndexInstance")) { NvIndexInstanceEventLogData nvIndexInstanceEvent = new NvIndexInstanceEventLogData(eventData); noActionInfo += nvIndexInstanceEvent.toString(); + } else if (signature.contains("NvIndexDynamic")) { + NvIndexDynamicEventLogData nvIndexDynamicEvent = new NvIndexDynamicEventLogData(eventData); + noActionInfo += nvIndexDynamicEvent.toString(); } else { - noActionInfo = "EV_NO_ACTION event named " + signature - + " encountered but support for processing it has not been" - + " added to this application.\n"; + noActionInfo = " EV_NO_ACTION event named \"" + signature + + "\" encountered but support for processing it has not been" + + " added to this application.\n"; } } diff --git a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/NvIndexDynamicEventLogData.java b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/NvIndexDynamicEventLogData.java index c5d8fbdc..b4fa78e8 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/NvIndexDynamicEventLogData.java +++ b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/NvIndexDynamicEventLogData.java @@ -7,7 +7,7 @@ import java.nio.charset.StandardCharsets; /** * Class to process the NV_INDEX_DYNAMIC_EVENT_LOG_DATA per PFP. * Per PFP, the first 16 bytes of the structure are a String based identifier (Signature), - * which are a NULL-terminated ASCII string "NvIndexInstance". + * which are a NULL-terminated ASCII string "NvIndexDynamic". * * HEADERS defined by PFP v1.06 Rev 52. * Certain fields are common to both ..HEADER and ..HEADER2, and are noted below the structures. From ccad9f94d199d0fb75a3e554ef7c2361ddcc3183 Mon Sep 17 00:00:00 2001 From: iadgovuser58 <124906646+iadgovuser58@users.noreply.github.com> Date: Tue, 20 Aug 2024 14:06:43 -0400 Subject: [PATCH 3/5] removing default constructors due to checkstyles not liking it --- .../java/hirs/utils/tpm/eventlog/events/EvConstants.java | 6 +++--- .../tpm/eventlog/events/NvIndexDynamicEventLogData.java | 2 +- .../src/main/java/hirs/utils/tpm/eventlog/spdm/SpdmHa.java | 4 ---- .../java/hirs/utils/tpm/eventlog/uefi/UefiConstants.java | 6 +++--- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/EvConstants.java b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/EvConstants.java index f8fff263..8f53f7cc 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/EvConstants.java +++ b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/EvConstants.java @@ -1,13 +1,13 @@ package hirs.utils.tpm.eventlog.events; -import lombok.AccessLevel; -import lombok.NoArgsConstructor; +//import lombok.AccessLevel; +//import lombok.NoArgsConstructor; /** * Class for defining constants referenced in the PC Client * Platform Firmware Profile specification. */ -@NoArgsConstructor(access = AccessLevel.PRIVATE) +//@NoArgsConstructor(access = AccessLevel.PRIVATE) public final class EvConstants { /** diff --git a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/NvIndexDynamicEventLogData.java b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/NvIndexDynamicEventLogData.java index b4fa78e8..f4318959 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/NvIndexDynamicEventLogData.java +++ b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/NvIndexDynamicEventLogData.java @@ -34,7 +34,7 @@ public class NvIndexDynamicEventLogData { /** * Human-readable description of the data within this DEVICE_SECURITY_EVENT_DATA/..DATA2 event. */ - String nvIndexDynamicInfo = ""; + private String nvIndexDynamicInfo = ""; /** * NvIndexInstanceEventLogData constructor. diff --git a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/spdm/SpdmHa.java b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/spdm/SpdmHa.java index 63d3a788..3ad7ce20 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/spdm/SpdmHa.java +++ b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/spdm/SpdmHa.java @@ -1,13 +1,9 @@ package hirs.utils.tpm.eventlog.spdm; -import lombok.AccessLevel; -import lombok.NoArgsConstructor; - /** * Class for defining hash algorithms referenced in the DMTF SPDM specification. * SPDM 1.3.0, Table 21, MeasurementHashAlgo. */ -@NoArgsConstructor(access = AccessLevel.PRIVATE) public class SpdmHa { /** diff --git a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/uefi/UefiConstants.java b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/uefi/UefiConstants.java index d60bf67d..8d54ba09 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/uefi/UefiConstants.java +++ b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/uefi/UefiConstants.java @@ -1,14 +1,14 @@ package hirs.utils.tpm.eventlog.uefi; -import lombok.AccessLevel; -import lombok.NoArgsConstructor; +//import lombok.AccessLevel; +//import lombok.NoArgsConstructor; /** * This class contains the String constants that are referenced by UEFI. * It is expected that member properties of this class will expand as * more functionality is added. */ -@NoArgsConstructor(access = AccessLevel.PRIVATE) +//@NoArgsConstructor(access = AccessLevel.PRIVATE) public final class UefiConstants { /** From 5b83cd2b3a881bc5246f7ea4dd510e4989a4b082 Mon Sep 17 00:00:00 2001 From: iadgovuser58 <124906646+iadgovuser58@users.noreply.github.com> Date: Tue, 20 Aug 2024 14:29:31 -0400 Subject: [PATCH 4/5] removing default constructors due to checkstyles not liking it --- HIRS_Utils/src/main/java/hirs/utils/HexUtils.java | 6 +++--- HIRS_Utils/src/main/java/hirs/utils/JsonUtils.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/HIRS_Utils/src/main/java/hirs/utils/HexUtils.java b/HIRS_Utils/src/main/java/hirs/utils/HexUtils.java index c065164b..93111f6b 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/HexUtils.java +++ b/HIRS_Utils/src/main/java/hirs/utils/HexUtils.java @@ -1,14 +1,14 @@ package hirs.utils; -import lombok.AccessLevel; -import lombok.NoArgsConstructor; +//import lombok.AccessLevel; +//import lombok.NoArgsConstructor; import java.math.BigInteger; /** * Utilities for working with hex strings and byte arrays. */ -@NoArgsConstructor(access = AccessLevel.PRIVATE) +//@NoArgsConstructor(access = AccessLevel.PRIVATE) public final class HexUtils { /** diff --git a/HIRS_Utils/src/main/java/hirs/utils/JsonUtils.java b/HIRS_Utils/src/main/java/hirs/utils/JsonUtils.java index 6ca10ae7..770808ea 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/JsonUtils.java +++ b/HIRS_Utils/src/main/java/hirs/utils/JsonUtils.java @@ -2,8 +2,8 @@ package hirs.utils; import com.eclipsesource.json.Json; import com.eclipsesource.json.JsonObject; -import lombok.AccessLevel; -import lombok.NoArgsConstructor; +//import lombok.AccessLevel; +//import lombok.NoArgsConstructor; import lombok.extern.log4j.Log4j2; import java.io.FileInputStream; @@ -20,7 +20,7 @@ import java.nio.file.Path; * library. */ @Log4j2 -@NoArgsConstructor(access = AccessLevel.PRIVATE) +//@NoArgsConstructor(access = AccessLevel.PRIVATE) public final class JsonUtils { /** From e24f07ab7839459619b65e31f9cd382572bffd43 Mon Sep 17 00:00:00 2001 From: iadgovuser58 <124906646+iadgovuser58@users.noreply.github.com> Date: Tue, 20 Aug 2024 15:09:33 -0400 Subject: [PATCH 5/5] adding private constructors to appease checkstyles; fixed some mispellings --- HIRS_Utils/src/main/java/hirs/utils/HexUtils.java | 8 ++++---- HIRS_Utils/src/main/java/hirs/utils/JsonUtils.java | 8 +++++--- HIRS_Utils/src/main/java/hirs/utils/PciIds.java | 5 +++++ .../src/main/java/hirs/utils/enums/DeviceInfoEnums.java | 6 ++++++ .../src/main/java/hirs/utils/swid/SwidTagConstants.java | 6 +++++- .../java/hirs/utils/tpm/eventlog/events/EvConstants.java | 9 +++++---- .../hirs/utils/tpm/eventlog/events/package-info.java | 2 +- .../main/java/hirs/utils/tpm/eventlog/package-info.java | 2 +- .../main/java/hirs/utils/tpm/eventlog/spdm/SpdmHa.java | 5 +++++ .../java/hirs/utils/tpm/eventlog/spdm/package-info.java | 5 +++++ .../java/hirs/utils/tpm/eventlog/uefi/UefiConstants.java | 9 +++++---- .../java/hirs/utils/tpm/eventlog/uefi/package-info.java | 2 +- .../src/main/java/hirs/utils/tpm/package-info.java | 2 +- 13 files changed, 49 insertions(+), 20 deletions(-) create mode 100644 HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/spdm/package-info.java diff --git a/HIRS_Utils/src/main/java/hirs/utils/HexUtils.java b/HIRS_Utils/src/main/java/hirs/utils/HexUtils.java index 93111f6b..19fbc29d 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/HexUtils.java +++ b/HIRS_Utils/src/main/java/hirs/utils/HexUtils.java @@ -1,16 +1,16 @@ package hirs.utils; -//import lombok.AccessLevel; -//import lombok.NoArgsConstructor; - import java.math.BigInteger; /** * Utilities for working with hex strings and byte arrays. */ -//@NoArgsConstructor(access = AccessLevel.PRIVATE) public final class HexUtils { + /** + * Default private constructor so checkstyles doesn't complain + */ + private HexUtils() { } /** * The mathematical base for the hexadecimal representation. */ diff --git a/HIRS_Utils/src/main/java/hirs/utils/JsonUtils.java b/HIRS_Utils/src/main/java/hirs/utils/JsonUtils.java index 770808ea..3626872e 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/JsonUtils.java +++ b/HIRS_Utils/src/main/java/hirs/utils/JsonUtils.java @@ -2,8 +2,6 @@ package hirs.utils; import com.eclipsesource.json.Json; import com.eclipsesource.json.JsonObject; -//import lombok.AccessLevel; -//import lombok.NoArgsConstructor; import lombok.extern.log4j.Log4j2; import java.io.FileInputStream; @@ -20,9 +18,13 @@ import java.nio.file.Path; * library. */ @Log4j2 -//@NoArgsConstructor(access = AccessLevel.PRIVATE) public final class JsonUtils { + /** + * Default private constructor so checkstyles doesn't complain + */ + private JsonUtils() { } + /** * Getter for the JSON Object that is associated with the elementName value * mapped in the associated JSON file. diff --git a/HIRS_Utils/src/main/java/hirs/utils/PciIds.java b/HIRS_Utils/src/main/java/hirs/utils/PciIds.java index ceeabbd0..57751f5e 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/PciIds.java +++ b/HIRS_Utils/src/main/java/hirs/utils/PciIds.java @@ -25,6 +25,11 @@ import java.util.List; @Log4j2 public final class PciIds { + /** + * Default private constructor so checkstyles doesn't complain + */ + private PciIds() { } + /** * This pci ids file can be in different places on different distributions. */ diff --git a/HIRS_Utils/src/main/java/hirs/utils/enums/DeviceInfoEnums.java b/HIRS_Utils/src/main/java/hirs/utils/enums/DeviceInfoEnums.java index 1a9e5447..fef2c9a3 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/enums/DeviceInfoEnums.java +++ b/HIRS_Utils/src/main/java/hirs/utils/enums/DeviceInfoEnums.java @@ -1,6 +1,12 @@ package hirs.utils.enums; public final class DeviceInfoEnums { + + /** + * Default private constructor so checkstyles doesn't complain + */ + private DeviceInfoEnums() { } + /** * A variable used to describe unavailable hardware, firmware, or OS info. */ diff --git a/HIRS_Utils/src/main/java/hirs/utils/swid/SwidTagConstants.java b/HIRS_Utils/src/main/java/hirs/utils/swid/SwidTagConstants.java index a74e2e49..89ea5581 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/swid/SwidTagConstants.java +++ b/HIRS_Utils/src/main/java/hirs/utils/swid/SwidTagConstants.java @@ -3,7 +3,6 @@ package hirs.utils.swid; import javax.xml.XMLConstants; import javax.xml.namespace.QName; - /** * This class contains the String constants that are referenced by the gateway * class. It is expected that member properties of this class will expand as @@ -11,6 +10,11 @@ import javax.xml.namespace.QName; */ public class SwidTagConstants { + /** + * Default private constructor so checkstyles doesn't complain + */ + private SwidTagConstants() { } + public static final String DEFAULT_KEYSTORE_FILE = "keystore.jks";//"/opt/hirs/rimtool/keystore.jks"; public static final String DEFAULT_KEYSTORE_PASSWORD = "password"; public static final String DEFAULT_PRIVATE_KEY_ALIAS = "1"; diff --git a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/EvConstants.java b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/EvConstants.java index 8f53f7cc..f71574db 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/EvConstants.java +++ b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/EvConstants.java @@ -1,15 +1,16 @@ package hirs.utils.tpm.eventlog.events; -//import lombok.AccessLevel; -//import lombok.NoArgsConstructor; - /** * Class for defining constants referenced in the PC Client * Platform Firmware Profile specification. */ -//@NoArgsConstructor(access = AccessLevel.PRIVATE) public final class EvConstants { + /** + * Default private constructor so checkstyles doesn't complain + */ + private EvConstants() { } + /** * Type length = 4 bytes. */ diff --git a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/package-info.java b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/package-info.java index c1cc588d..a6869958 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/package-info.java +++ b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/package-info.java @@ -1,5 +1,5 @@ /** - * Non-persistant classes related to TGC Event Logs. + * Non-persistent classes related to TGC Event Logs. */ package hirs.utils.tpm.eventlog.events; diff --git a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/package-info.java b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/package-info.java index b889eb14..025b8e4c 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/package-info.java +++ b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/package-info.java @@ -1,5 +1,5 @@ /** - * Non-persistant classes related to TGC Event Logs. + * Non-persistent classes related to TGC Event Logs. */ package hirs.utils.tpm.eventlog; diff --git a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/spdm/SpdmHa.java b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/spdm/SpdmHa.java index 3ad7ce20..b64d013b 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/spdm/SpdmHa.java +++ b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/spdm/SpdmHa.java @@ -6,6 +6,11 @@ package hirs.utils.tpm.eventlog.spdm; */ public class SpdmHa { + /** + * Default private constructor so checkstyles doesn't complain + */ + private SpdmHa() { } + /** * Spdm Hash Alg = Raw bit stream. */ diff --git a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/spdm/package-info.java b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/spdm/package-info.java new file mode 100644 index 00000000..64b778b4 --- /dev/null +++ b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/spdm/package-info.java @@ -0,0 +1,5 @@ +/** + * Non-persistent classes related to TGC Event Logs. + */ + +package hirs.utils.tpm.eventlog.spdm; \ No newline at end of file diff --git a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/uefi/UefiConstants.java b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/uefi/UefiConstants.java index 8d54ba09..655ffa68 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/uefi/UefiConstants.java +++ b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/uefi/UefiConstants.java @@ -1,16 +1,17 @@ package hirs.utils.tpm.eventlog.uefi; -//import lombok.AccessLevel; -//import lombok.NoArgsConstructor; - /** * This class contains the String constants that are referenced by UEFI. * It is expected that member properties of this class will expand as * more functionality is added. */ -//@NoArgsConstructor(access = AccessLevel.PRIVATE) public final class UefiConstants { + /** + * Default private constructor so checkstyles doesn't complain + */ + private UefiConstants() { } + /** * 2 byte size. */ diff --git a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/uefi/package-info.java b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/uefi/package-info.java index 49a26bc9..c5971e6f 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/uefi/package-info.java +++ b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/uefi/package-info.java @@ -1,5 +1,5 @@ /** - * Non-persistant classes related to TGC Event Logs. + * Non-persistent classes related to TGC Event Logs. */ package hirs.utils.tpm.eventlog.uefi; diff --git a/HIRS_Utils/src/main/java/hirs/utils/tpm/package-info.java b/HIRS_Utils/src/main/java/hirs/utils/tpm/package-info.java index ea3ec288..2b164e32 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/tpm/package-info.java +++ b/HIRS_Utils/src/main/java/hirs/utils/tpm/package-info.java @@ -1,5 +1,5 @@ /** - * Non-persistant classes related to TPM. + * Non-persistent classes related to TPM. */ package hirs.utils.tpm;