Created
September 2, 2010 20:04
-
-
Save gseitz/562846 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// dependency: org.apache.httpcomponents %% httpclient % 4.0.1 | |
class SSLTest { | |
import javax.net.ssl.SSLContext | |
import org.apache.http.conn.ssl.SSLSocketFactory | |
val ctx = SSLContext.getInstance("TLS") | |
ctx.init(null, null, null) | |
val sf = new SSLSocketFactory(ctx) | |
} | |
// results in | |
// [error] ..../src/main/scala/Activity.scala:67: type mismatch; | |
// [error] found : javax.net.ssl.SSLContext | |
// [error] required: java.security.KeyStore | |
// [error] val sf = new SSLSocketFactory(ctx) | |
// [error] ^ | |
// [error] one error found | |
// BUT there should be a constructor o.a.h.c.ssl.SSLSocketFactory(javax.net.ssl.SSLContext) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment