public class JdkSSLOptions extends Object implements SSLOptions
SSLOptions
implementation based on built-in JDK classes.Modifier and Type | Class and Description |
---|---|
static class |
JdkSSLOptions.Builder
Helper class to build JDK-based SSL options.
|
Modifier | Constructor and Description |
---|---|
protected |
JdkSSLOptions(SSLContext context,
String[] cipherSuites)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static JdkSSLOptions.Builder |
builder()
Creates a builder to create a new instance.
|
protected SSLEngine |
newSSLEngine(SocketChannel channel)
Creates an SSL engine each time a connection is established.
|
SslHandler |
newSSLHandler(SocketChannel channel)
Creates a new SSL handler for the given Netty channel.
|
protected JdkSSLOptions(SSLContext context, String[] cipherSuites)
context
- the SSL context.cipherSuites
- the cipher suites to use.public static JdkSSLOptions.Builder builder()
public SslHandler newSSLHandler(SocketChannel channel)
SSLOptions
JdkSSLOptions
and
NettySSLOptions
.newSSLHandler
in interface SSLOptions
channel
- the channel.protected SSLEngine newSSLEngine(SocketChannel channel)
channel
- the Netty channel for that connection.