public class SniSSLOptions extends JdkSSLOptions implements ExtendedRemoteEndpointAwareSslOptions
| Modifier and Type | Class and Description |
|---|---|
static class |
SniSSLOptions.Builder |
cipherSuites, context| Modifier | Constructor and Description |
|---|---|
protected |
SniSSLOptions(SSLContext context,
String[] cipherSuites)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static SniSSLOptions.Builder |
builder() |
protected SSLEngine |
newSSLEngine(io.netty.channel.socket.SocketChannel channel,
EndPoint remoteEndpoint) |
io.netty.handler.ssl.SslHandler |
newSSLHandler(io.netty.channel.socket.SocketChannel channel)
Creates a new SSL handler for the given Netty channel.
|
io.netty.handler.ssl.SslHandler |
newSSLHandler(io.netty.channel.socket.SocketChannel channel,
EndPoint remoteEndpoint)
Creates a new SSL handler for the given Netty channel and the given remote endpoint.
|
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.
|
newSSLEngineprotected SniSSLOptions(SSLContext context, String[] cipherSuites)
context - the SSL context.cipherSuites - the cipher suites to use.public io.netty.handler.ssl.SslHandler newSSLHandler(io.netty.channel.socket.SocketChannel channel)
SSLOptionsThis gets called each time the driver opens a new connection to a Cassandra host. The newly created handler will be added to the channel's pipeline to provide SSL support for the connection.
You don't necessarily need to implement this method directly; see the provided
implementations: JdkSSLOptions and NettySSLOptions.
newSSLHandler in interface SSLOptionsnewSSLHandler in class JdkSSLOptionschannel - the channel.public io.netty.handler.ssl.SslHandler newSSLHandler(io.netty.channel.socket.SocketChannel channel,
EndPoint remoteEndpoint)
ExtendedRemoteEndpointAwareSslOptionsThis gets called each time the driver opens a new connection to a Cassandra host. The newly created handler will be added to the channel's pipeline to provide SSL support for the connection.
You don't necessarily need to implement this method directly; see the provided
implementations: RemoteEndpointAwareJdkSSLOptions and RemoteEndpointAwareNettySSLOptions.
newSSLHandler in interface ExtendedRemoteEndpointAwareSslOptionschannel - the channel.remoteEndpoint - the remote endpoint information.SslHandler.public io.netty.handler.ssl.SslHandler newSSLHandler(io.netty.channel.socket.SocketChannel channel,
InetSocketAddress remoteEndpoint)
RemoteEndpointAwareSSLOptionsThis gets called each time the driver opens a new connection to a Cassandra host. The newly created handler will be added to the channel's pipeline to provide SSL support for the connection.
You don't necessarily need to implement this method directly; see the provided
implementations: RemoteEndpointAwareJdkSSLOptions and RemoteEndpointAwareNettySSLOptions.
newSSLHandler in interface RemoteEndpointAwareSSLOptionschannel - the channel.remoteEndpoint - the remote endpoint address.SslHandler.protected SSLEngine newSSLEngine(io.netty.channel.socket.SocketChannel channel, EndPoint remoteEndpoint)
public static SniSSLOptions.Builder builder()
Copyright © 2012–2023. All rights reserved.