mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-18 02:39:56 +00:00
Merge branch 'issue-395' of github.com:nsacyber/HIRS into issue-395
This commit is contained in:
commit
bf989bbee7
@ -1056,6 +1056,12 @@ public abstract class AbstractAttestationCertificateAuthority
|
||||
false, false, tpe.getEventContent());
|
||||
this.referenceEventManager.saveValue(rdv);
|
||||
}
|
||||
} catch (CertificateException e) {
|
||||
e.printStackTrace();
|
||||
} catch (NoSuchAlgorithmException e) {
|
||||
e.printStackTrace();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -57,8 +57,8 @@ public enum Page {
|
||||
/**
|
||||
* Page to display RIM event digest table.
|
||||
*/
|
||||
TPM_EVENTS("RIM Database", "ic_important_devices", "first"),
|
||||
/**
|
||||
RIM_DATABASE("RIM Database", "ic_important_devices", "first"),
|
||||
\ /**
|
||||
* Page that manages Attestation CA Policy.
|
||||
*/
|
||||
RIM_DATABASE("RIM Database", null, "first"),
|
||||
|
@ -286,15 +286,6 @@ public class ReferenceManifestPageController
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (EventLogMeasurements liveLog : EventLogMeasurements
|
||||
.select(referenceManifestManager).getRIMs()) {
|
||||
if (liveLog.getPlatformManufacturer().equals(base.getPlatformManufacturer())
|
||||
&& liveLog.getPlatformModel().equals(base.getPlatformModel())) {
|
||||
rim.setEventLogHash(liveLog.getEventLogHash());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -104,9 +104,11 @@ public class RimDatabasePageController
|
||||
*/
|
||||
@Autowired
|
||||
public RimDatabasePageController(
|
||||
final DBReferenceManifestManager referenceManifestManager,
|
||||
final DBReferenceDigestManager referenceDigestManager,
|
||||
final DBReferenceEventManager referenceEventManager) {
|
||||
super(Page.RIM_DATABASE);
|
||||
this.referenceManifestManager = referenceManifestManager;
|
||||
this.referenceDigestManager = referenceDigestManager;
|
||||
this.referenceEventManager = referenceEventManager;
|
||||
this.biosValidator = new BiosDateValidator(BIOS_RELEASE_DATE_FORMAT);
|
||||
|
@ -818,9 +818,7 @@ public abstract class AbstractDbManager<T> implements CrudManager<T> {
|
||||
LOGGER.info("Get unique result from criteria object");
|
||||
recordsFiltered = (Long) criteria.uniqueResult();
|
||||
} catch (HibernateException e) {
|
||||
LOGGER.info(e.getMessage());
|
||||
} catch (Exception e) {
|
||||
LOGGER.info("Error while getting unique result: " + e.getMessage());
|
||||
LOGGER.error(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user