Skip to content

Commit 3dd349c

Browse files
committed
comment
1 parent 5e17ee5 commit 3dd349c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/main/java/com/databricks/jdbc/dbclient/impl/common/ConfiguratorUtils.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ private static boolean isJDBCTestEnv() {
4949
public static PoolingHttpClientConnectionManager getBaseConnectionManager(
5050
IDatabricksConnectionContext connectionContext) throws DatabricksHttpException {
5151

52+
if (connectionContext.getSSLTrustStore() == null
53+
&& connectionContext.checkCertificateRevocation()
54+
&& !connectionContext.acceptUndeterminedCertificateRevocation()) {
55+
return new PoolingHttpClientConnectionManager();
56+
}
57+
5258
// For test environments, use a trust-all socket factory
5359
if (isJDBCTestEnv()) {
5460
LOGGER.info("Using trust-all socket factory for JDBC test environment");

0 commit comments

Comments
 (0)