@Override
public String getHostAttestationReport(String pcrList) throws IOException {
if( vendorHostReport != null ) { return vendorHostReport; }
// if( vmmName == null ) { getHostDetails(); } // XXX host details API is not part of core so you have to get it another way
try {
TAHelper helper = new TAHelper();
HashMap<String, PcrManifest> pcrMap = helper.getQuoteInformationForHost(hostAddress.toString(), trustAgentClient, pcrList);
vendorHostReport = helper.getHostAttestationReport(hostAddress.toString(), pcrMap, vmmName);
log.debug("Host attestation report for {}", hostAddress);
log.debug(vendorHostReport);
return vendorHostReport;
}
catch(Exception e) {