mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-20 03:36:36 +00:00
Fixed an unchecked conversion error [no ci]
This commit is contained in:
parent
f6511a8d53
commit
e29f5e5ea9
@ -4,6 +4,7 @@ import hirs.attestationca.AbstractAttestationCertificateAuthority;
|
||||
import hirs.attestationca.service.SupplyChainValidationService;
|
||||
import hirs.data.service.DeviceRegister;
|
||||
import hirs.persist.CertificateManager;
|
||||
import hirs.persist.ComponentResultManager;
|
||||
import hirs.persist.DBManager;
|
||||
import hirs.persist.DeviceManager;
|
||||
import hirs.persist.ReferenceDigestManager;
|
||||
@ -38,6 +39,7 @@ public class RestfulAttestationCertificateAuthority
|
||||
* @param privateKey the ACA private key
|
||||
* @param acaCertificate the ACA certificate
|
||||
* @param structConverter the struct converter
|
||||
* @param componentResultManager the component result manager
|
||||
* @param certificateManager the certificate manager
|
||||
* @param referenceManifestManager the referenceManifestManager
|
||||
* @param deviceRegister the device register
|
||||
@ -53,6 +55,7 @@ public class RestfulAttestationCertificateAuthority
|
||||
final SupplyChainValidationService supplyChainValidationService,
|
||||
final PrivateKey privateKey, final X509Certificate acaCertificate,
|
||||
final StructConverter structConverter,
|
||||
final ComponentResultManager componentResultManager,
|
||||
final CertificateManager certificateManager,
|
||||
final ReferenceManifestManager referenceManifestManager,
|
||||
final DeviceRegister deviceRegister,
|
||||
@ -62,7 +65,7 @@ public class RestfulAttestationCertificateAuthority
|
||||
final ReferenceEventManager referenceEventManager,
|
||||
@Value("${aca.certificates.validity}") final int validDays) {
|
||||
super(supplyChainValidationService, privateKey, acaCertificate, structConverter,
|
||||
certificateManager, referenceManifestManager,
|
||||
componentResultManager, certificateManager, referenceManifestManager,
|
||||
deviceRegister, validDays, deviceManager,
|
||||
tpm2ProvisionerStateDBManager, referenceDigestManager, referenceEventManager);
|
||||
}
|
||||
|
@ -119,6 +119,7 @@ public class DBComponentResultManager extends DBManager<ComponentResult>
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public Set<ComponentResult> getComponentResultsByCertificate(final UUID certificateId) {
|
||||
LOGGER.debug("Getting record associated with {}", certificateId);
|
||||
if (certificateId == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user