Skip to content

Commit 6844320

Browse files
committed
Enhance SSL support and add tests
- Added support for SSL client certificate authentication via the new parameter: SSLTrustStoreProvider. - Introduced a test case for SSL trust store parameters to validate default settings in the DatabricksConnectionContext. Signed-off-by: [Your Name] <your.email@databricks.com>
1 parent 777bc60 commit 6844320

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

NEXT_CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Added
66
- Added DCO (Developer Certificate of Origin) check workflow for pull requests to ensure all commits are properly signed-off
7+
-Added support for SSL client certificate authentication via parameter: SSLTrustStoreProvider
78

89
### Updated
910
-

src/test/java/com/databricks/jdbc/api/impl/DatabricksConnectionContextTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,4 +592,14 @@ public void testSSLKeystoreParameters() throws DatabricksSQLException {
592592
assertEquals("PKCS12", connectionContext.getSSLKeyStoreType());
593593
assertEquals("SunJSSE", connectionContext.getSSLKeyStoreProvider());
594594
}
595+
596+
@Test
597+
public void testSSLTrustStoreParameters() throws DatabricksSQLException {
598+
// Test case 1: Default settings (all null)
599+
String validJdbcUrl = TestConstants.VALID_URL_1;
600+
Properties properties = new Properties();
601+
DatabricksConnectionContext connectionContext =
602+
(DatabricksConnectionContext) DatabricksConnectionContext.parse(validJdbcUrl, properties);
603+
assertNull(connectionContext.getSSLTrustStore());
604+
}
595605
}

0 commit comments

Comments
 (0)