public interface RemoteEndpointAwareSSLOptions extends SSLOptions
SSLOptions
with the possibility to pass remote endpoint data
when instantiating SslHandler
s.
This is needed when e.g. hostname verification is required.
See JAVA-1364 for details.
The reason this is a child interface is to keep SSLOptions
backwards-compatible.
This interface may be be merged into SSLOptions
in a later major release.Modifier and Type | Method and Description |
---|---|
io.netty.handler.ssl.SslHandler |
newSSLHandler(io.netty.channel.socket.SocketChannel channel,
InetSocketAddress remoteEndpoint)
Creates a new SSL handler for the given Netty channel and the given remote endpoint.
|
newSSLHandler
io.netty.handler.ssl.SslHandler newSSLHandler(io.netty.channel.socket.SocketChannel channel, InetSocketAddress remoteEndpoint)
RemoteEndpointAwareJdkSSLOptions
and RemoteEndpointAwareNettySSLOptions
.channel
- the channel.remoteEndpoint
- the remote endpoint address.SslHandler
.Copyright © 2012–2021. All rights reserved.