public static interface EnvironmentBuilder.TlsConfiguration
| Modifier and Type | Method and Description |
|---|---|
EnvironmentBuilder |
environmentBuilder()
Go back to the environment builder
|
EnvironmentBuilder.TlsConfiguration |
hostnameVerification()
Enable hostname verification.
|
EnvironmentBuilder.TlsConfiguration |
hostnameVerification(boolean hostnameVerification)
Enable or disable hostname verification.
|
EnvironmentBuilder.TlsConfiguration |
sslContext(io.netty.handler.ssl.SslContext sslContext)
Netty
SslContext for TLS connections. |
EnvironmentBuilder.TlsConfiguration |
trustEverything()
Convenience method to set a
SslContext that trusts all servers. |
EnvironmentBuilder.TlsConfiguration hostnameVerification()
Hostname verification is enabled by default.
EnvironmentBuilder.TlsConfiguration hostnameVerification(boolean hostnameVerification)
Hostname verification is enabled by default.
hostnameVerification - EnvironmentBuilder.TlsConfiguration sslContext(io.netty.handler.ssl.SslContext sslContext)
SslContext for TLS connections.
Use SslContextBuilder.forClient() to configure and create an instance.
sslContext - EnvironmentBuilder.TlsConfiguration trustEverything()
SslContext 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()
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.