public class RemoteEndpointAwareNettySSLOptions extends NettySSLOptions implements RemoteEndpointAwareSSLOptions
RemoteEndpointAwareSSLOptions implementation based on Netty's SSL context.
Netty has the ability to use OpenSSL if available, instead of the JDK's built-in engine. This yields better performance.context| Constructor and Description |
|---|
RemoteEndpointAwareNettySSLOptions(SslContext context)
Create a new instance from a given context.
|
| Modifier and Type | Method and Description |
|---|---|
SslHandler |
newSSLHandler(SocketChannel channel)
Creates a new SSL handler for the given Netty channel.
|
SslHandler |
newSSLHandler(SocketChannel channel,
InetSocketAddress remoteEndpoint)
Creates a new SSL handler for the given Netty channel and the given remote endpoint.
|
public RemoteEndpointAwareNettySSLOptions(SslContext context)
context - the Netty context. SslContextBuilder.forClient() provides a fluent API to build it.public SslHandler newSSLHandler(SocketChannel channel)
SSLOptionsJdkSSLOptions and
NettySSLOptions.newSSLHandler in interface SSLOptionsnewSSLHandler in class NettySSLOptionschannel - the channel.public SslHandler newSSLHandler(SocketChannel channel, InetSocketAddress remoteEndpoint)
RemoteEndpointAwareSSLOptionsRemoteEndpointAwareJdkSSLOptions and RemoteEndpointAwareNettySSLOptions.newSSLHandler in interface RemoteEndpointAwareSSLOptionschannel - the channel.remoteEndpoint - the remote endpoint address.SslHandler.Copyright © 2012–2018. All rights reserved.