public class RemoteEndpointAwareJdkSSLOptions extends JdkSSLOptions implements RemoteEndpointAwareSSLOptions
RemoteEndpointAwareSSLOptions
implementation based on built-in JDK classes.Modifier and Type | Class and Description |
---|---|
static class |
RemoteEndpointAwareJdkSSLOptions.Builder
Helper class to build JDK-based SSL options.
|
cipherSuites, context
Modifier | Constructor and Description |
---|---|
protected |
RemoteEndpointAwareJdkSSLOptions(SSLContext context,
String[] cipherSuites)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static RemoteEndpointAwareJdkSSLOptions.Builder |
builder()
Creates a builder to create a new instance.
|
protected SSLEngine |
newSSLEngine(SocketChannel channel,
InetSocketAddress remoteEndpoint)
Creates an SSL engine each time a connection is established.
|
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.
|
newSSLEngine
protected RemoteEndpointAwareJdkSSLOptions(SSLContext context, String[] cipherSuites)
context
- the SSL context.cipherSuites
- the cipher suites to use.public static RemoteEndpointAwareJdkSSLOptions.Builder builder()
public SslHandler newSSLHandler(SocketChannel channel)
SSLOptions
JdkSSLOptions
and
NettySSLOptions
.newSSLHandler
in interface SSLOptions
newSSLHandler
in class JdkSSLOptions
channel
- the channel.public SslHandler newSSLHandler(SocketChannel channel, InetSocketAddress remoteEndpoint)
RemoteEndpointAwareSSLOptions
RemoteEndpointAwareJdkSSLOptions
and RemoteEndpointAwareNettySSLOptions
.newSSLHandler
in interface RemoteEndpointAwareSSLOptions
channel
- the channel.remoteEndpoint
- the remote endpoint address.SslHandler
.protected SSLEngine newSSLEngine(SocketChannel channel, InetSocketAddress remoteEndpoint)
channel
- the Netty channel for that connection.remoteEndpoint
- the remote endpoint we are connecting to.Copyright © 2012–2018. All rights reserved.