|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.xconf.toolbox.ssl.EasySSLUtils
public class EasySSLUtils
JDK 1.4+ utility class to setup very trusting SSL connections. In an ideal world we should all have proper SSL certificates, but sometimes, especially during integration tests, you just don't care if the server's certificate is correct. All you want to do is to connect to the server and run your test.
| Constructor Summary | |
|---|---|
EasySSLUtils()
|
|
| Method Summary | |
|---|---|
static SSLSocketFactory |
createSocketFactory()
Creates a very trusting JDK 1.4+ SSLv3 socket factory. |
static void |
setupHttps(URLConnection connection)
Sets up a very trusting SSL connection. |
static void |
setupHttpsDefaults()
Configures JDK 1.4+ to use very trusting SSL connections by default. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EasySSLUtils()
| Method Detail |
|---|
public static void setupHttps(URLConnection connection)
connection - An HttpsURLConnection instance.EasyHostnameVerifier,
createSocketFactory()public static void setupHttpsDefaults()
EasyHostnameVerifier,
createSocketFactory()public static SSLSocketFactory createSocketFactory()
UnhandledException - If unable to create the socket factory.EasyX509TrustManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||