hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will McQueen <willmcqu...@yahoo.com>
Subject HttpClient 4.0 Tutorial, and SSLSocketFactory
Date Tue, 16 Jun 2009 06:15:47 GMT


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]



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

View raw message