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
| `preparedStatementCacheQueries` | Determine the number of queries that are cached in each connection. The default is `-1`, meaning there's no limit. The value of `-1` disables the cache. Any other value specifies the cache size.
83
83
| `options` | A `Map<String, String>` of connection parameters. These are applied to each database connection created by the `ConnectionFactory`. Useful for setting generic [PostgreSQL connection parameters][psql-runtime-config]. _(Optional)_
84
84
| `schema` | The search path to set. _(Optional)_
85
-
| `sslMode` | SSL mode to use, see `SSLMode` enum. Supported values: `DISABLE`, `ALLOW`, `PREFER`, `REQUIRE`, `VERIFY_CA`, `VERIFY_FULL`. _(Optional)_
85
+
| `sslMode` | SSL mode to use, see `SSLMode` enum. Supported values: `DISABLE`, `ALLOW`, `PREFER`, `REQUIRE`, `VERIFY_CA`, `VERIFY_FULL`, `TUNNEL`. _(Optional)_
86
86
| `sslRootCert` | Path to SSL CA certificate in PEM format. _(Optional)_
87
87
| `sslKey` | Path to SSL key for TLS authentication in PEM format. _(Optional)_
88
88
| `sslCert` | Path to SSL certificate for TLS authentication in PEM format. _(Optional)_
if (this.sslConfig.getHostnameVerifier().verify(hostName, this.sslEngine.getSession())) {
66
+
completeHandshake();
67
+
} else {
68
+
completeHandshakeExceptionally(newPostgresqlSslException(String.format("The hostname '%s' could not be verified.", socketAddress.getAddress().toString())));
if (this.sslConfig.getHostnameVerifier().verify(hostName, this.sslEngine.getSession())) {
89
-
this.handshakeFuture.complete(null);
90
-
} else {
91
-
this.handshakeFuture.completeExceptionally(newPostgresqlSslException(String.format("The hostname '%s' could not be verified.", socketAddress.getAddress().toString())));
0 commit comments