Package com.intel.mtwilson.agent

Examples of com.intel.mtwilson.agent.HostAgentFactory


        // BUG #497 adding TblHosts parameter to this call so we can send the TlsPolicy to the HostAgentFactory for making the connection
  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;
                                    }
View Full Code Here


  }

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

                                HostAgentFactory hostAgentFactory = new HostAgentFactory();           
                                HashMap<String, ? extends IManifest>  pcrMap = hostAgentFactory.getManifest(tblHosts);
                                return pcrMap;
  }
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);
        }
View Full Code Here

TOP

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

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.