use of com.intel.mtwilson.tls.TlsConnection in project OpenAttestation by OpenAttestation.
the class CitrixAgentStrategy method getManifest.
@Override
public HashMap<String, ? extends IManifest> getManifest(TblHosts host) throws Exception {
String pcrList = getPcrList(host);
HostAgentFactory factory = new HostAgentFactory();
TlsPolicy tlsPolicy = factory.getTlsPolicy(host.getTlsPolicyName(), host.getTlsKeystoreResource());
CitrixClient client = new CitrixClient(new TlsConnection(host.getAddOnConnectionInfo(), tlsPolicy));
return client.getQuoteInformationForHost(pcrList);
}
use of com.intel.mtwilson.tls.TlsConnection in project OpenAttestation by OpenAttestation.
the class CitrixHostAgentFactory method getHostAgent.
@Override
public HostAgent getHostAgent(InternetAddress hostAddress, String vendorConnectionString, TlsPolicy tlsPolicy) throws IOException {
CitrixClient client = new CitrixClient(new TlsConnection(vendorConnectionString, tlsPolicy));
client.init();
return new CitrixHostAgent(client);
}
Aggregations