use of com.intel.mountwilson.ta.data.quoterequest.QuoteRequest in project OpenAttestation by OpenAttestation.
the class TrustAgentSecureClient method getQuote.
public ClientRequestType getQuote(String nonce, String pcrList) throws PropertyException, JAXBException, UnknownHostException, IOException, KeyManagementException, NoSuchAlgorithmException {
QuoteRequest quoteRequest = new QuoteRequest();
quoteRequest.setPcrList(pcrList + ",22,22");
quoteRequest.setNonce(nonce);
this.data = getXml(quoteRequest).getBytes();
ClientRequestType clientRequestType = sendQuoteRequest();
log.info("Got quote from server");
log.info("+++++++++++++++++++++++++++clientRequestType.getQuote(): " + clientRequestType.getQuote());
log.info("+++++++++++++++++++++++++++clientRequestType.getEventLog(): " + new String(Base64.decodeBase64(clientRequestType.getEventLog())));
return clientRequestType;
}
Aggregations