Search in sources :

Example 1 with TlsConnection

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);
}
Also used : CitrixClient(com.intel.mtwilson.agent.citrix.CitrixClient) HostAgentFactory(com.intel.mtwilson.agent.HostAgentFactory) TlsConnection(com.intel.mtwilson.tls.TlsConnection) TlsPolicy(com.intel.mtwilson.tls.TlsPolicy)

Example 2 with TlsConnection

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);
}
Also used : TlsConnection(com.intel.mtwilson.tls.TlsConnection)

Aggregations

TlsConnection (com.intel.mtwilson.tls.TlsConnection)2 HostAgentFactory (com.intel.mtwilson.agent.HostAgentFactory)1 CitrixClient (com.intel.mtwilson.agent.citrix.CitrixClient)1 TlsPolicy (com.intel.mtwilson.tls.TlsPolicy)1