RemoteEndpointAwareJdkSSLOptions
instead.@Deprecated 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
Deprecated.
Helper class to build JDK-based SSL options.
|
Modifier and Type | Field and Description |
---|---|
protected String[] |
cipherSuites
Deprecated.
|
protected SSLContext |
context
Deprecated.
|
Modifier | Constructor and Description |
---|---|
protected |
JdkSSLOptions(SSLContext context,
String[] cipherSuites)
Deprecated.
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static JdkSSLOptions.Builder |
builder()
Deprecated.
Creates a builder to create a new instance.
|
protected SSLEngine |
newSSLEngine(io.netty.channel.socket.SocketChannel channel)
Deprecated.
Creates an SSL engine each time a connection is established.
|
io.netty.handler.ssl.SslHandler |
newSSLHandler(io.netty.channel.socket.SocketChannel channel)
Deprecated.
Creates a new SSL handler for the given Netty channel.
|
protected final SSLContext context
protected final String[] cipherSuites
protected JdkSSLOptions(SSLContext context, String[] cipherSuites)
context
- the SSL context.cipherSuites
- the cipher suites to use.public static JdkSSLOptions.Builder builder()
public io.netty.handler.ssl.SslHandler newSSLHandler(io.netty.channel.socket.SocketChannel channel)
SSLOptions
This 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 SSLOptions
channel
- the channel.protected SSLEngine newSSLEngine(io.netty.channel.socket.SocketChannel channel)
You might want to override this if you need to fine-tune the engine's configuration (for example enabling hostname verification).
channel
- the Netty channel for that connection.Copyright © 2012–2020. All rights reserved.