Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
82efb88
v3_issue_1018: Add remaining TPMSecurityAssertions and OID-value tran…
iadgovuser62 Nov 19, 2025
720a409
Merge branch 'main' into v3_issue_1018
iadgovuser62 Jan 30, 2026
7d763d9
v3_issue_1018: Fix front end to work with Thymeleaf
iadgovuser62 Feb 10, 2026
6110104
Merge branch 'main' into v3_issue_1018
iadgovuser62 Feb 10, 2026
0e6d493
v3_issue_1018: Fix spotbugs
iadgovuser62 Feb 10, 2026
5586d55
v3.1_issue_1101: First cut at fixing javadoc warnings/errors
ThatSilentCoder Feb 10, 2026
6815409
v3.1_issue_1101: Slowly but surely cutting down warnings. Added a lin…
ThatSilentCoder Feb 10, 2026
9ac095c
v3.1_issue_1101: Slowly but surely cutting down warnings. Moved files…
ThatSilentCoder Feb 10, 2026
b6e1661
v3.1_issue_1101: Fixed up more javadoc issues and moved classes to th…
ThatSilentCoder Feb 12, 2026
ee48571
v3.1_issue_1101: Fixed javadoc errors. Handling as many manageable ja…
ThatSilentCoder Feb 12, 2026
a634f3d
Merge branch 'main' into v3_issue_1101_fix_javadoc_generation_error_w…
ThatSilentCoder Feb 12, 2026
38fd1a1
v3.1_issue_1101: Fixed build error.
ThatSilentCoder Feb 12, 2026
14ee0a5
Merge branch 'main' into v3_issue_1101_fix_javadoc_generation_error_w…
ThatSilentCoder Feb 13, 2026
1e1cc87
v3.1_issue_1101: Fixed broken issue
ThatSilentCoder Feb 13, 2026
7920ebc
v3.1_issue_1101: Fixed more warnings and errors from javadocs. Will c…
ThatSilentCoder Feb 17, 2026
d38bd6f
v3.1_issue_1101: Fixed all major warnings in HIRS_UTILS. PR ready.
ThatSilentCoder Feb 17, 2026
3204e9e
v3.1_issue_1101: Commented the line that allows gradle to print unlim…
ThatSilentCoder Feb 17, 2026
d2837b8
v3.1_issue_1101: Removed unused code found during PR
ThatSilentCoder Feb 19, 2026
2a7bacd
Merge branch 'main' into v3_issue_1101_fix_javadoc_generation_error_w…
ThatSilentCoder Feb 24, 2026
6b80015
Merge branch 'main' into v3_issue_1101_fix_javadoc_generation_error_w…
ThatSilentCoder Feb 25, 2026
6df6af1
v3.1_issue_1105: Merged main into local branch.
ThatSilentCoder Feb 26, 2026
93eb2c6
v3.1_issue_1105: Merged main into local branch.
ThatSilentCoder Feb 26, 2026
d6c5108
v3.1_issue_1105: Fixed build errors.
ThatSilentCoder Feb 26, 2026
3a9340b
Merge branch 'main' into v3_issue_1101_fix_javadoc_generation_error_w…
ThatSilentCoder Mar 2, 2026
9b1b9e2
v3.1_issue_1105: Merged main into local branch.
ThatSilentCoder Mar 11, 2026
8aa936a
v3.1_issue_1105: Merged main into JavaDoc generation error branch.
ThatSilentCoder Mar 19, 2026
05b1bda
Forgot to include this in the just recently merged in PR
ThatSilentCoder Mar 30, 2026
5509ad5
v3.1_issue_1105: Merged main into local branch.
ThatSilentCoder Mar 30, 2026
a8384bd
v3.1_issue_1105: Merged main into local branch.
ThatSilentCoder Mar 30, 2026
3121684
v3.1_issue_1105: Added more javadocs to the repo, service classes.
ThatSilentCoder Mar 30, 2026
7497cba
v3.1_issue_1105: Fixed comments made in the javadocs.
ThatSilentCoder Mar 30, 2026
58d7382
v3.1_issue_1105: Addressed remaining javadoc warnings.
ThatSilentCoder Mar 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,53 +13,62 @@
import java.util.List;
import java.util.UUID;

/**
* Repository interface for managing {@link Certificate} entities in the database.
*
* <p>
* The {@link CertificateRepository} interface extends {@link JpaRepository} to provide basic CRUD operations,
* including save, find, delete, and query methods. Custom query methods can be defined
* using Spring Data JPA's query method naming conventions or with the Query annotation.
* </p>
*/
@Repository
public interface CertificateRepository extends JpaRepository<Certificate, UUID> {

/**
* Query that retrieves a certificate using the provided uuid.
* Query that retrieves a {@link Certificate} object using the provided uuid.
*
* @param uuid uuid
* @return a certificate
* @return a {@link Certificate} object
*/
@Query(value = "SELECT * FROM Certificate where id = ?1", nativeQuery = true)
Certificate getCertificate(UUID uuid);

/**
* Query that retrieves a list of certificates using the provided subject and dtype.
* Query that retrieves a list of {@link Certificate} objects using the provided subject and dtype.
*
* @param subject subject
* @param dType dtype
* @return a list of certificates
* @return a list of {@link Certificate} objects
*/
@Query(value = "SELECT * FROM Certificate where subject = ?1 AND DTYPE = ?2", nativeQuery = true)
List<Certificate> findBySubject(String subject, String dType);

/**
* Query that retrieves a sorted list of certificates using the provided subject and dtype.
* Query that retrieves a sorted list of {@link Certificate} objects using the provided subject and dtype.
*
* @param subjectSorted subject
* @param dType dtype
* @return a list of sorted certificates
* @return a list of sorted {@link Certificate} objects
*/
@Query(value = "SELECT * FROM Certificate where subjectSorted = ?1 AND DTYPE = ?2", nativeQuery = true)
List<Certificate> findBySubjectSorted(String subjectSorted, String dType);

/**
* Query that retrieves a list of certificates using the provided dtype.
* Query that retrieves a list of {@link Certificate} objects using the provided dtype.
*
* @param dType dtype
* @return a list of certificates
* @return a list of {@link Certificate} objects
*/
@Query(value = "SELECT * FROM Certificate where DTYPE = ?1", nativeQuery = true)
List<Certificate> findByType(String dType);

/**
* Query that retrieves a list of certificates using the provided serial number and dtype.
* Query that retrieves a list of {@link Certificate} objects using the provided serial number and dtype.
*
* @param serialNumber serial number
* @param dType dtype
* @return a certificate
* @return a {@link Certificate} object
*/
@Query(value = "SELECT * FROM Certificate where serialNumber = ?1 AND DTYPE = ?2", nativeQuery = true)
Certificate findBySerialNumber(BigInteger serialNumber, String dType);
Expand Down Expand Up @@ -98,11 +107,11 @@ public interface CertificateRepository extends JpaRepository<Certificate, UUID>
List<PlatformCredential> getByHolderSerialNumber(BigInteger holderSerialNumber);

/**
* Query that retrieves a certificate using the provided certificate hash and dtype.
* Query that retrieves a {@link Certificate} object using the provided certificate hash and dtype.
*
* @param certificateHash integer certificate hash
* @param dType dtype
* @return a certificate
* @return a {@link Certificate} object
*/
@Query(value = "SELECT * FROM Certificate where certificateHash = ?1 AND DTYPE = ?2", nativeQuery = true)
Certificate findByCertificateHashAndDType(int certificateHash, String dType);
Expand All @@ -116,29 +125,21 @@ public interface CertificateRepository extends JpaRepository<Certificate, UUID>
EndorsementCredential findByPublicKeyModulusHexValue(String publicKeyModulusHexValue);

/**
* Query that retrieves an issued attestation certificate using the provided device id.
*
* @param deviceId uuid representation of the device id
* @return an issued attestation certificate
*/
IssuedAttestationCertificate findByDeviceId(UUID deviceId);

/**
* Query that retrieves a list of issued attestation certificates using the provided device id,
* Query that retrieves a list of {@link IssuedAttestationCertificate} objects using the provided device id,
* ldevID value and sort value.
*
* @param deviceId device id
* @param ldevID is it a LDevId
* @param sort sort
* @return a list of issued attestation certificates
* @return a list of {@link IssuedAttestationCertificate} objects
*/
List<IssuedAttestationCertificate> findByDeviceIdAndLdevID(UUID deviceId, boolean ldevID, Sort sort);

/**
* Query that retrieves a certificates using the provided certificate hash.
* Query that retrieves a {@link Certificate} object using the provided certificate hash.
*
* @param certificateHash integer certificate hash
* @return a certificate
* @return a {@link Certificate} object
*/
Certificate findByCertificateHash(int certificateHash);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,30 @@
import java.util.List;
import java.util.UUID;

/**
* Repository interface for managing {@link ComponentAttributeResult} entities in the database.
*
* <p>
* The {@link ComponentAttributeRepository} interface extends {@link JpaRepository} to provide basic CRUD operations,
* including save, find, delete, and query methods. Custom query methods can be defined
* using Spring Data JPA's query method naming conventions or with the Query annotation.
* </p>
*/
public interface ComponentAttributeRepository extends JpaRepository<ComponentAttributeResult, UUID> {
/**
* Query to look up Attribute Results based on the PlatformCredential's
* Query to retrieves a list of {@link ComponentAttributeResult} objects based on the PlatformCredential's
* db component id.
*
* @param componentId the unique id for the component identifier
* @return a list of attribute results
* @return a list of {@link ComponentAttributeResult} objects
*/
List<ComponentAttributeResult> findByComponentId(UUID componentId);

/**
* Query to look up Attribute Results based on the validation id.
* Query that retrieves a list of {@link ComponentAttributeResult} objects based on the validation id.
*
* @param provisionSessionId unique id generated to link supply chain summary
* @return a list of attribute results
* @return a list of {@link ComponentAttributeResult} objects
*/
List<ComponentAttributeResult> findByProvisionSessionId(UUID provisionSessionId);

/**
* Query to look up Attribute Results based on the component id and the session id.
*
* @param componentId the unique id for the component identifier
* @param provisionSessionId unique id generated to link supply chain summary
* @return a list of attribute results
*/
List<ComponentAttributeResult> findByComponentIdAndProvisionSessionId(UUID componentId,
UUID provisionSessionId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,21 @@
import java.util.List;
import java.util.UUID;

/**
* Repository interface for managing {@link ComponentInfo} entities in the database.
*
* <p>
* The {@link ComponentInfoRepository} interface extends {@link JpaRepository} to provide basic CRUD operations,
* including save, find, delete, and query methods. Custom query methods can be defined
* using Spring Data JPA's query method naming conventions or with the Query annotation.
* </p>
*/
public interface ComponentInfoRepository extends JpaRepository<ComponentInfo, UUID> {
/**
* Query that retrieves device components by device name.
* Query that retrieves a list of {@link ComponentInfo} objects (device components) by device name.
*
* @param deviceName string for the host name
* @return a list of device components
* @return a list of {@link ComponentInfo} objects (device components)
*/
List<ComponentInfo> findByDeviceName(String deviceName);

/**
* Query that retrieves device components by device name and
* the component serial number.
*
* @param deviceName string for the host name
* @param componentSerial string for the component serial
* @return a list of device components
*/
List<ComponentInfo> findByDeviceNameAndComponentSerial(String deviceName, String componentSerial);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,43 @@
import java.util.List;
import java.util.UUID;

/**
* Repository interface for managing {@link ComponentResult} entities in the database.
*
* <p>
* The {@link ComponentResultRepository} interface extends {@link JpaRepository} to provide basic CRUD operations,
* including save, find, delete, and query methods. Custom query methods can be defined
* using Spring Data JPA's query method naming conventions or with the Query annotation.
* </p>
*/
@Repository
public interface ComponentResultRepository extends JpaRepository<ComponentResult, UUID> {

/**
* Query based on the device serial number.
* Query that retrieves a list of {@link ComponentResult} objects based on the device serial number.
*
* @param boardSerialNumber variable holding the device serial number
* @return a list of component result.
* @return a list of {@link ComponentResult} objects
*/
List<ComponentResult> findByBoardSerialNumber(String boardSerialNumber);

/**
* Query based on the device serial number.
* Query that retrieves a list of {@link ComponentResult} objects based on the device serial number and a boolean
* value.
*
* @param boardSerialNumber variable holding the device serial number
* @param delta flag indicating if the component is associated with a delta certificate
* @return a list of component result.
* @return a list of {@link ComponentResult} objects
*/
List<ComponentResult> findByBoardSerialNumberAndDelta(String boardSerialNumber, boolean delta);

/**
* Query based on certificate serial number and device serial number.
* Query that retrieves a list of {@link ComponentResult} objects based on certificate serial number
* and device serial number.
*
* @param certificateSerialNumber certificate specific serial number
* @param boardSerialNumber variable holding the device serial number
* @return a list of component result.
* @return a list of {@link ComponentResult} objects
*/
List<ComponentResult> findByCertificateSerialNumberAndBoardSerialNumber(
String certificateSerialNumber, String boardSerialNumber);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,22 @@

import java.util.UUID;

/**
* Repository interface for managing {@link Device} entities in the database.
*
* <p>
* The {@link DeviceRepository} interface extends {@link JpaRepository} to provide basic CRUD operations,
* including save, find, delete, and query methods. Custom query methods can be defined
* using Spring Data JPA's query method naming conventions or with the Query annotation.
* </p>
*/
@Repository
public interface DeviceRepository extends JpaRepository<Device, UUID> {
/**
* Query that retrieves a device using the provided device name.
* Query that retrieves a {@link Device} object using the provided device name.
*
* @param deviceName device name
* @return a device
* @return a {@link Device} object
*/
Device findByName(String deviceName);
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,23 @@

import java.util.UUID;

/**
* Repository interface for managing the ACA's {@link PolicySettings} in the database.
*
* <p>
* The {@link PolicyRepository} interface extends {@link JpaRepository} to provide basic CRUD operations,
* including save, find, delete, and query methods. Custom query methods can be defined
* using Spring Data JPA's query method naming conventions or with the Query annotation.
* </p>
*/
@Repository
public interface PolicyRepository extends JpaRepository<PolicySettings, UUID> {

/**
* Query that retrieves policy settings using the provided name.
* Query that retrieves a {@link PolicySettings} object using the provided name.
*
* @param name name
* @return policy settings
* @return a {@link PolicySettings} object
*/
PolicySettings findByName(String name);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,55 +7,48 @@
import java.util.List;
import java.util.UUID;

/**
* Repository interface for managing {@link ReferenceDigestValue} entities in the database.
*
* <p>
* The {@link ReferenceDigestValueRepository} interface extends {@link JpaRepository} to provide basic CRUD operations,
* including save, find, delete, and query methods. Custom query methods can be defined
* using Spring Data JPA's query method naming conventions or with the Query annotation.
* </p>
*/
@Repository
public interface ReferenceDigestValueRepository extends JpaRepository<ReferenceDigestValue, UUID> {

/**
* Query that retrieves a list of reference digest values using the provided model.
*
* @param model string representation of the model
* @return a list of reference digest values
*/
List<ReferenceDigestValue> findByModel(String model);

/**
* Query that retrieves a list of reference digest values using the provided manufacturer.
*
* @param manufacturer string representation of the manufacturer
* @return a list of reference digest values
*/
List<ReferenceDigestValue> findByManufacturer(String manufacturer);

/**
* Query that retrieves a list of reference digest values using the provided associated rim id.
* Query that retrieves a list of {@link ReferenceDigestValue} objects using the provided associated rim id.
*
* @param associatedRimId uuid representation of the associated rim ID
* @return a list of reference digest values
* @return a list of {@link ReferenceDigestValue} objects
*/
List<ReferenceDigestValue> findValuesByBaseRimId(UUID associatedRimId);

/**
* Query that retrieves a list of reference digest values using the provided support rim id.
* Query that retrieves a list of {@link ReferenceDigestValue} objects using the provided support rim id.
*
* @param supportRimId uuid representation of the support rim ID
* @return a list of reference digest values
* @return a list of {@link ReferenceDigestValue} objects
*/
List<ReferenceDigestValue> findBySupportRimId(UUID supportRimId);

/**
* Query that retrieves a list of reference digest values using the provided support rim hash.
* Query that retrieves a list of {@link ReferenceDigestValue} objects using the provided support rim hash.
*
* @param supportRimHash a string representation of the support rim hash
* @return a list of reference digest values
* @return a list of {@link ReferenceDigestValue} objects
*/
List<ReferenceDigestValue> findBySupportRimHash(String supportRimHash);

/**
* Query that retrieves a list of reference digest values using the provided manufacturer and model.
* Query that retrieves a list of {@link ReferenceDigestValue} objects using the provided manufacturer and model.
*
* @param manufacturer string representation of the manufacturer
* @param model string representation of the model
* @return a list of reference digest values
* @return a list of {@link ReferenceDigestValue} objects
*/
List<ReferenceDigestValue> findByManufacturerAndModel(String manufacturer, String model);
}
Loading
Loading