public static class KubernetesFactory.TrustEverythingSSLTrustManager extends Object implements X509TrustManager
| Constructor and Description | 
|---|
| KubernetesFactory.TrustEverythingSSLTrustManager() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | checkClientTrusted(X509Certificate[] certs,
                  String authType) | 
| void | checkServerTrusted(X509Certificate[] certs,
                  String authType) | 
| X509Certificate[] | getAcceptedIssuers() | 
| static 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(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. | 
public KubernetesFactory.TrustEverythingSSLTrustManager()
public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManagerpublic void checkClientTrusted(X509Certificate[] certs, String authType)
checkClientTrusted in interface X509TrustManagerpublic void checkServerTrusted(X509Certificate[] certs, String authType)
checkServerTrusted in interface X509TrustManagerpublic static SSLSocketFactory getTrustingSSLSocketFactory()
HttpsURLConnection.setSSLSocketFactory(SSLSocketFactory), 
HttpsURLConnection.setDefaultSSLSocketFactory(SSLSocketFactory)public static void trustAllSSLCertificatesUniversally()
public static void trustAllSSLCertificates(HttpsURLConnection connection)
connection - an HttpsURLConnection which will be configured to trust all certsCopyright © 2011–2015 Red Hat. All rights reserved.