private Logger log = LoggerFactory.getLogger(getClass());
@Override
public IntelHostAgent getHostAgent(InternetAddress hostAddress, String vendorConnectionString, TlsPolicy tlsPolicy) throws IOException {
try {
TrustAgentSecureClient client = new TrustAgentSecureClient(new TlsConnection(vendorConnectionString, tlsPolicy));
log.debug("Creating IntelHostAgent for host {} with connection string {}", hostAddress, vendorConnectionString);
return new IntelHostAgent(client, hostAddress);
}
catch(Exception e) {
throw new IOException("Cannot get trust agent client for host: "+hostAddress.toString()+": "+e.toString());