Package com.rabbitmq.stream
Interface EnvironmentBuilder.TlsConfiguration
-
- Enclosing interface:
- EnvironmentBuilder
public static interface EnvironmentBuilder.TlsConfigurationHelper to configure TLS.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EnvironmentBuilderenvironmentBuilder()Go back to the environment builderEnvironmentBuilder.TlsConfigurationsslContext(SslContext sslContext)NettySslContextfor TLS connections.EnvironmentBuilder.TlsConfigurationtrustEverything()Convenience method to set aSslContextthat trusts all servers.
-
-
-
Method Detail
-
sslContext
EnvironmentBuilder.TlsConfiguration sslContext(SslContext sslContext)
NettySslContextfor 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 aSslContextthat 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
-
-