Package org.apache.calcite.util
Class UnsafeX509ExtendedTrustManager
java.lang.Object
javax.net.ssl.X509ExtendedTrustManager
org.apache.calcite.util.UnsafeX509ExtendedTrustManager
- All Implemented Interfaces:
TrustManager
,X509TrustManager
This class is used to disable SSL Certificate Verification in Calcite adapters that make http
calls. This trust manager will validate any SSL certificate, whether valid or not. This should
not be used in production environments.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkClientTrusted
(X509Certificate[] certificates, String authType) void
checkClientTrusted
(X509Certificate[] certificates, String authType, Socket socket) void
checkClientTrusted
(X509Certificate[] certificates, String authType, SSLEngine sslEngine) void
checkServerTrusted
(X509Certificate[] certificates, String authType) void
checkServerTrusted
(X509Certificate[] certificates, String authType, Socket socket) void
checkServerTrusted
(X509Certificate[] certificates, String authType, SSLEngine sslEngine) static X509ExtendedTrustManager
-
Method Details
-
getInstance
-
checkClientTrusted
-
checkClientTrusted
- Specified by:
checkClientTrusted
in classX509ExtendedTrustManager
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] certificates, String authType, SSLEngine sslEngine) - Specified by:
checkClientTrusted
in classX509ExtendedTrustManager
-
checkServerTrusted
-
checkServerTrusted
- Specified by:
checkServerTrusted
in classX509ExtendedTrustManager
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] certificates, String authType, SSLEngine sslEngine) - Specified by:
checkServerTrusted
in classX509ExtendedTrustManager
-
getAcceptedIssuers
-