« Return to Thread: HttpClient 4.0 Tutorial, and SSLSocketFactory

HttpClient 4.0 Tutorial, and SSLSocketFactory

by Will McQueen :: Rate this Message:

Reply to Author | View in Thread


Hi,

The HttpClient 4.0 tutorial says:

SSLSocketFactory sf = new SSLSocketFactory(sslcontext);

...but I don't see that the javax.net.ssl.SSLSocketFactory takes a param of type SSLContext. Did you mean:

SSLSocketFactory sf = (SSLSocketFactory)sslcontext.getSocketFactory();

...? [as alluded to in the SSL section of http://java.sun.com/products/javamail/SSLNOTES.txt]

Cheers,
Will


     

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@...
For additional commands, e-mail: httpclient-users-help@...

 « Return to Thread: HttpClient 4.0 Tutorial, and SSLSocketFactory