public class NettySSLOptions extends Object implements SSLOptions
SSLOptions
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.Constructor and Description |
---|
NettySSLOptions(io.netty.handler.ssl.SslContext context)
Create a new instance from a given context.
|
Modifier and Type | Method and Description |
---|---|
io.netty.handler.ssl.SslHandler |
newSSLHandler(io.netty.channel.socket.SocketChannel channel)
Creates a new SSL handler for the given Netty channel.
|
public NettySSLOptions(io.netty.handler.ssl.SslContext context)
context
- the Netty context. SslContextBuilder.forClient()
provides a fluent API to build it.public io.netty.handler.ssl.SslHandler newSSLHandler(io.netty.channel.socket.SocketChannel channel)
SSLOptions
JdkSSLOptions
and
NettySSLOptions
.newSSLHandler
in interface SSLOptions
channel
- the channel.