public interface SNIClientConfigResolver
Connection.getPeerAddress()
value,
particularly for TCP connections the default value will be based on
InetSocketAddress.getHostString()
. But SNIClientConfigResolver
allows you to customize the default host name value.Modifier and Type | Method and Description |
---|---|
SNIConfig |
resolve(Connection connection)
|
SNIConfig resolve(Connection connection)
SNIConfig
for the new Connection
, null
value means no SNI information will be sent.
The SNIConfig
could be created like:
SNIConfig.clientConfigBuilder()
.host("myhost.com")
.sslEngineConfigurator(myHostSSLEngineConfigurator)
.build();
connection
- SNIConfig
for the new Connection
, null
value means no SNI information will be sentCopyright © 2015 Oracle Corporation. All rights reserved.