Search in sources :

Example 1 with QuoteRequest

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;
}
Also used : QuoteRequest(com.intel.mountwilson.ta.data.quoterequest.QuoteRequest) ClientRequestType(com.intel.mountwilson.ta.data.ClientRequestType)

Aggregations

ClientRequestType (com.intel.mountwilson.ta.data.ClientRequestType)1 QuoteRequest (com.intel.mountwilson.ta.data.quoterequest.QuoteRequest)1