Package com.intel.mountwilson.ta.data

Examples of com.intel.mountwilson.ta.data.ClientRequestType


            assert new String(buf) != null;
            JAXBElement po =  (JAXBElement) u.unmarshal(new StringReader(new String(buf).trim()));
           
            assert po != null;
           
            ClientRequestType response = (ClientRequestType)po.getValue();
           
            assert response != null;
           
            checkQuoteError(response);
View Full Code Here


            log.info("Sending Generate Identity");
            byte[] identityInput = "<identity_request></identity_request>".getBytes();
            this.data = identityInput;

            ClientRequestType response = sendQuoteRequest();

            String certificate = response.getAikcert();
           
            // TODO:  ensure certificate is propertly formatted.  If missing a line after the header, insert it.  Or decode it, and re-encode as base-64 blob with no line endings.
           
            return certificate;
        }catch(ASException ase){
View Full Code Here

    public ClientRequestType getQuote(String nonce, String pcrList) throws PropertyException, JAXBException, UnknownHostException, IOException, KeyManagementException, NoSuchAlgorithmException {
        QuoteRequest quoteRequest = new QuoteRequest();
        quoteRequest.setPcrList(pcrList);
        quoteRequest.setNonce(nonce);
        this.data = getXml(quoteRequest).getBytes();
        ClientRequestType clientRequestType = sendQuoteRequest();
        log.info("Got quote from server");
        return clientRequestType;
    }
View Full Code Here

              //  XXX BUG #497  START CODE SNIPPET MOVED TO INTEL HOST AGENT  
            String nonce = generateNonce();

            String sessionId = generateSessionId();

            ClientRequestType clientRequestType = client.getQuote(nonce, pcrList);
            log.info( "got response from server ["+hostname+"] "+clientRequestType);

            String quote = clientRequestType.getQuote();
            log.info( "extracted quote from response: "+quote);

            saveQuote(quote, sessionId);
            log.info( "saved quote with session id: "+sessionId);
     
            // we only need to save the certificate when registring the host ... when we are just getting a quote we need to verify it using the previously saved AIK.
            if( trustedAik == null ) {
                String aikCertificate = clientRequestType.getAikcert();           
                log.info( "extracted aik cert from response: "+aikCertificate);
           
                saveCertificate(aikCertificate, sessionId);
                log.info( "saved host-provided AIK certificate with session id: "+sessionId);
            }
View Full Code Here

TOP

Related Classes of com.intel.mountwilson.ta.data.ClientRequestType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.