|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openqa.selenium.server.TrustEverythingSSLTrustManager
public class TrustEverythingSSLTrustManager
Provides a mechanism to trust all SSL certificates
| Constructor Summary | |
|---|---|
TrustEverythingSSLTrustManager()
|
|
| Method Summary | |
|---|---|
void |
checkClientTrusted(java.security.cert.X509Certificate[] certs,
java.lang.String authType)
|
void |
checkServerTrusted(java.security.cert.X509Certificate[] certs,
java.lang.String authType)
|
java.security.cert.X509Certificate[] |
getAcceptedIssuers()
|
static javax.net.ssl.SSLSocketFactory |
getTrustingSSLSocketFactory()
Returns an SSLSocketFactory that will trust all SSL certificates; this is suitable for passing to HttpsURLConnection, either to its instance method setSSLSocketFactory, or to its static method setDefaultSSLSocketFactory. |
static void |
trustAllSSLCertificates(javax.net.ssl.HttpsURLConnection connection)
Configures a single HttpsURLConnection to trust all SSL certificates. |
static void |
trustAllSSLCertificatesUniversally()
Automatically trusts all SSL certificates in the current process; this is dangerous. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrustEverythingSSLTrustManager()
| Method Detail |
|---|
public java.security.cert.X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface javax.net.ssl.X509TrustManager
public void checkClientTrusted(java.security.cert.X509Certificate[] certs,
java.lang.String authType)
checkClientTrusted in interface javax.net.ssl.X509TrustManager
public void checkServerTrusted(java.security.cert.X509Certificate[] certs,
java.lang.String authType)
checkServerTrusted in interface javax.net.ssl.X509TrustManagerpublic static javax.net.ssl.SSLSocketFactory getTrustingSSLSocketFactory()
HttpsURLConnection.setSSLSocketFactory(SSLSocketFactory),
HttpsURLConnection.setDefaultSSLSocketFactory(SSLSocketFactory)public static void trustAllSSLCertificatesUniversally()
trustAllSSLCertificates(HttpsURLConnection)public static void trustAllSSLCertificates(javax.net.ssl.HttpsURLConnection connection)
connection - an HttpsURLConnection which will be configured to trust all certs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||