You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify test setup by moving TrustStore assertions into unit tests instead of customizing the actual SQL server instance. Add configuration options to MssqlConnectionFactoryProvider and document these. Add author and since tags.
[#148][#150]
| `preferCursoredExecution` | Whether to prefer cursors or direct execution for queries. Uses by default direct. Cursors require more round-trips but are more backpressure-friendly. Defaults to direct execution. Can be `boolean` or a `Predicate<String>` accepting the SQL query. _(Optional)_
78
78
| `sendStringParametersAsUnicode` | Configure whether to send character data as unicode (NVARCHAR, NCHAR, NTEXT) or whether to use the database encoding, defaults to `true`. If disabled, `CharSequence` data is sent using the database-specific collation such as ASCII/MBCS instead of Unicode.
79
+
| `trustStoreType` | Type of the TrustStore. Defaults to `KeyStore.getDefaultType()`. _(Optional)_
80
+
| `trustStore` | Path to the certificate TrustStore file. _(Optional)_
81
+
| `trustStorePassword` | Password used to check the integrity of the TrustStore data. _(Optional)_
@@ -323,10 +324,13 @@ public static final class Builder {
323
324
324
325
privateStringusername;
325
326
326
-
privateStringtrustStore;
327
+
@Nullable
328
+
privateFiletrustStore;
327
329
330
+
@Nullable
328
331
privateStringtrustStoreType;
329
332
333
+
@Nullable
330
334
privatechar[] trustStorePassword;
331
335
332
336
privateBuilder() {
@@ -505,22 +509,38 @@ public Builder username(String username) {
505
509
/**
506
510
* Configure the trust store type.
507
511
*
508
-
* @param trustStoreType the type of the trust store to be used for SSL certificate verification. Defaults to 'JKS' if not set.
512
+
* @param trustStoreType the type of the trust store to be used for SSL certificate verification. Defaults to {@link KeyStore#getDefaultType()} if not set.
509
513
* @return this {@link Builder}
514
+
* @throws IllegalArgumentException if {@code trustStoreType} is {@code null}
0 commit comments