Package com.intel.mtwilson.agent

Examples of com.intel.mtwilson.agent.HostAgent


  private HashMap<String, ? extends IManifest> getHostPcrManifest(TblHosts tblHosts, TxtHost host) {
                                try {

                                    // bug #538 check the host capability before we try to get a manifest
                                    HostAgentFactory factory = new HostAgentFactory();
                                    HostAgent agent = factory.getHostAgent(tblHosts);
                                    if( agent.isTpmAvailable() ) {

                                        HashMap<String, ? extends IManifest> pcrMap = getPcrModuleManifestMap(tblHosts, host);
                                        return pcrMap;
                                    }
                                    else {
View Full Code Here


  }
       

  private String getAIKCertificateForHost(TblHosts tblHosts, TxtHost host) {
    HostAgentFactory factory = new HostAgentFactory(); // we could call IntelHostAgentFactory but then we have to create the TlsPolicy object ourselves... the HostAgentFactory does that for us.
    HostAgent agent = factory.getHostAgent(tblHosts);
    if( agent.isAikAvailable() ) {
        X509Certificate cert = agent.getAikCertificate();
        try {
                return X509Util.encodePemCertificate(cert);
        }
        catch(Exception e) {
                log.error("Cannot encode AIK certificate: "+e.toString(), e);
View Full Code Here

TOP

Related Classes of com.intel.mtwilson.agent.HostAgent

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.