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
| `targetServerType` | Type of server to use when using multi-host operations. Supported values: `ANY`, `PRIMARY`, `SECONDARY`, `PREFER_SECONDARY`. Defaults to `ANY`. _(Optional)_
107
108
| `tcpNoDelay` | Enable/disable TCP NoDelay. Enabled by default. _(Optional)_
@@ -852,6 +864,47 @@ public Builder sslContextBuilderCustomizer(Function<SslContextBuilder, SslContex
852
864
returnthis;
853
865
}
854
866
867
+
/**
868
+
* Configure a {@link SSLEngine} customizer. The customizer gets applied on each SSL connection attempt to allow for just-in-time configuration updates. The {@link Function} gets
869
+
* called with a {@link SSLEngine} instance that has all configuration options applied. The customizer may return the same builder or return a new builder instance to be used to
870
+
* build the SSL context.
871
+
*
872
+
* @param sslEngineCustomizer customizer function
873
+
* @return this {@link Builder}
874
+
* @throws IllegalArgumentException if {@code sslEngineCustomizer} is {@code null}
this.sslEngineCustomizer = Assert.requireNonNull(sslEngineCustomizer, "sslEngineCustomizer must not be null");
878
+
returnthis;
879
+
}
880
+
881
+
/**
882
+
* Configure a {@link SSLParameters} provider for a given {@link SocketAddress}. The provider gets applied on each SSL connection attempt to allow for just-in-time configuration updates.
883
+
* Typically used to configure SSL protocols
884
+
*
885
+
* @param sslParametersFactory customizer function
886
+
* @return this {@link Builder}
887
+
* @throws IllegalArgumentException if {@code sslParametersFactory} is {@code null}
this.sslParametersFactory = Assert.requireNonNull(sslParametersFactory, "sslParametersFactory must not be null");
892
+
returnthis;
893
+
}
894
+
895
+
/**
896
+
* Configure whether to indicate the hostname and port via SNI to the server. Enabled by default.
897
+
*
898
+
* @param sslSni whether to indicate the hostname and port via SNI. Sets {@link SSLParameters#setServerNames(List)} on the {@link SSLParameters} instance provided by
899
+
* {@link #sslParameters(Function)}.
900
+
* @return this {@link Builder}
901
+
* @since 1.0.4
902
+
*/
903
+
publicBuildersslSni(booleansslSni) {
904
+
this.sslSni = sslSni;
905
+
returnthis;
906
+
}
907
+
855
908
/**
856
909
* Configure ssl cert for client certificate authentication. Can point to either a resource within the classpath or a file.
857
910
*
@@ -1094,10 +1147,13 @@ public String toString() {
0 commit comments