I'm unable to set the 'disableCNCheck' programmatically as below:

HTTPConduit http = (HTTPConduit) client.getConduit();
TLSClientParameters param = new TLSClientParameters();
param.setDisableCNCheck(true);
http.setTlsClientParameters(param);


What's the correct way to do this?


Thanks,
Vinay

Reply via email to