Package com.datastax.driver.core
Class JdkSSLOptions
- java.lang.Object
-
- com.datastax.driver.core.JdkSSLOptions
-
- All Implemented Interfaces:
SSLOptions
- Direct Known Subclasses:
RemoteEndpointAwareJdkSSLOptions,SniSSLOptions
@Deprecated public class JdkSSLOptions extends Object implements SSLOptions
Deprecated.UseRemoteEndpointAwareJdkSSLOptionsinstead.SSLOptionsimplementation based on built-in JDK classes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJdkSSLOptions.BuilderDeprecated.Helper class to build JDK-based SSL options.
-
Field Summary
Fields Modifier and Type Field Description protected String[]cipherSuitesDeprecated.protected SSLContextcontextDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description protectedJdkSSLOptions(SSLContext context, String[] cipherSuites)Deprecated.Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static JdkSSLOptions.Builderbuilder()Deprecated.Creates a builder to create a new instance.protected SSLEnginenewSSLEngine(SocketChannel channel)Deprecated.Creates an SSL engine each time a connection is established.SslHandlernewSSLHandler(SocketChannel channel)Deprecated.Creates a new SSL handler for the given Netty channel.
-
-
-
Field Detail
-
context
protected final SSLContext context
Deprecated.
-
cipherSuites
protected final String[] cipherSuites
Deprecated.
-
-
Constructor Detail
-
JdkSSLOptions
protected JdkSSLOptions(SSLContext context, String[] cipherSuites)
Deprecated.Creates a new instance.- Parameters:
context- the SSL context.cipherSuites- the cipher suites to use.
-
-
Method Detail
-
builder
public static JdkSSLOptions.Builder builder()
Deprecated.Creates a builder to create a new instance.- Returns:
- the builder.
-
newSSLHandler
public SslHandler newSSLHandler(SocketChannel channel)
Deprecated.Description copied from interface:SSLOptionsCreates a new SSL handler for the given Netty channel.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:
JdkSSLOptionsandNettySSLOptions.- Specified by:
newSSLHandlerin interfaceSSLOptions- Parameters:
channel- the channel.- Returns:
- the handler.
-
newSSLEngine
protected SSLEngine newSSLEngine(SocketChannel channel)
Deprecated.Creates an SSL engine each time a connection is established.You might want to override this if you need to fine-tune the engine's configuration (for example enabling hostname verification).
- Parameters:
channel- the Netty channel for that connection.- Returns:
- the engine.
-
-