mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-18 20:47:58 +00:00
Should RIM lookup include rimType?
This commit is contained in:
parent
9664056e94
commit
e8415ded27
@ -17,7 +17,7 @@ import java.util.UUID;
|
||||
public interface ReferenceManifestRepository extends JpaRepository<ReferenceManifest, UUID> {
|
||||
|
||||
ReferenceManifest findByHexDecHash(String hexDecHash);
|
||||
ReferenceManifest findByEventLogHash(String eventLogHash);
|
||||
ReferenceManifest findByEventLogHash(String rimType, String eventLogHash);
|
||||
ReferenceManifest findByBase64Hash(String base64Hash);
|
||||
ReferenceManifest findByHexDecHashAndRimType(String hexDecHash, String rimType);
|
||||
@Query(value = "SELECT * FROM ReferenceManifest WHERE platformManufacturer = ?1 AND platformModel = ?2 AND rimType = 'Base'", nativeQuery = true)
|
||||
|
@ -321,7 +321,7 @@ public class SupplyChainValidationService {
|
||||
deviceName));
|
||||
} else {
|
||||
ReferenceManifest manifest = referenceManifestRepository
|
||||
.findByEventLogHash(sRim.getEventLogHash());
|
||||
.findByEventLogHash(sRim.getRimType(), sRim.getEventLogHash());
|
||||
if (manifest instanceof EventLogMeasurements) {
|
||||
eventLog = (EventLogMeasurements)manifest;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user