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 TypeMethodDescriptionvoidcheckClientTrusted(X509Certificate[] certificates, String authType) voidcheckClientTrusted(X509Certificate[] certificates, String authType, Socket socket) voidcheckClientTrusted(X509Certificate[] certificates, String authType, SSLEngine sslEngine) voidcheckServerTrusted(X509Certificate[] certificates, String authType) voidcheckServerTrusted(X509Certificate[] certificates, String authType, Socket socket) voidcheckServerTrusted(X509Certificate[] certificates, String authType, SSLEngine sslEngine) static X509ExtendedTrustManager
-
Method Details
-
getInstance
-
checkClientTrusted
-
checkClientTrusted
- Specified by:
checkClientTrustedin classX509ExtendedTrustManager
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] certificates, String authType, SSLEngine sslEngine) - Specified by:
checkClientTrustedin classX509ExtendedTrustManager
-
checkServerTrusted
-
checkServerTrusted
- Specified by:
checkServerTrustedin classX509ExtendedTrustManager
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] certificates, String authType, SSLEngine sslEngine) - Specified by:
checkServerTrustedin classX509ExtendedTrustManager
-
getAcceptedIssuers
-