Package com.rabbitmq.stream
Interface EnvironmentBuilder.TlsConfiguration
-
- Enclosing interface:
- EnvironmentBuilder
public static interface EnvironmentBuilder.TlsConfiguration
Helper to configure TLS.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description EnvironmentBuilder
environmentBuilder()
Go back to the environment builderEnvironmentBuilder.TlsConfiguration
hostnameVerification()
Deprecated, for removal: This API element is subject to removal in a future version.EnvironmentBuilder.TlsConfiguration
hostnameVerification(boolean hostnameVerification)
Deprecated, for removal: This API element is subject to removal in a future version.EnvironmentBuilder.TlsConfiguration
sslContext(SslContext sslContext)
NettySslContext
for TLS connections.EnvironmentBuilder.TlsConfiguration
trustEverything()
Convenience method to set aSslContext
that trusts all servers.
-
-
-
Method Detail
-
hostnameVerification
@Deprecated(forRemoval=true) EnvironmentBuilder.TlsConfiguration hostnameVerification()
Deprecated, for removal: This API element is subject to removal in a future version.Enable hostname verification.Hostname verification is enabled by default.
- Returns:
- the TLS configuration helper
-
hostnameVerification
@Deprecated(forRemoval=true) EnvironmentBuilder.TlsConfiguration hostnameVerification(boolean hostnameVerification)
Deprecated, for removal: This API element is subject to removal in a future version.Enable or disable hostname verification.Hostname verification is enabled by default.
- Parameters:
hostnameVerification
- whether to enable hostname verification or not- Returns:
- the TLS configuration helper
-
sslContext
EnvironmentBuilder.TlsConfiguration sslContext(SslContext sslContext)
NettySslContext
for TLS connections.Use
SslContextBuilder.forClient()
to configure and create an instance.- Parameters:
sslContext
- the SSL context- Returns:
- the TLS configuration helper
-
trustEverything
EnvironmentBuilder.TlsConfiguration trustEverything()
Convenience method to set aSslContext
that trusts all servers.When this feature is enabled, no peer verification is performed, which provides no protection against Man-in-the-Middle (MITM) attacks.
Use this only in development and QA environments.
-
environmentBuilder
EnvironmentBuilder environmentBuilder()
Go back to the environment builder- Returns:
- the environment builder
-
-