* N.B. does not allow SlowSocket - fails with:
* java.lang.RuntimeException: Export restriction: this JSSE implementation is non-pluggable.
*/
HttpsURLConnection.setDefaultSSLSocketFactory(new HttpSSLProtocolSocketFactory(this));
HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier() {
public boolean verify(String hostname, SSLSession session) {
return true;
}
});