Package com.datastax.driver.core
Class NettySSLOptions
- java.lang.Object
-
- com.datastax.driver.core.NettySSLOptions
-
- All Implemented Interfaces:
SSLOptions
- Direct Known Subclasses:
RemoteEndpointAwareNettySSLOptions
@Deprecated public class NettySSLOptions extends Object implements SSLOptions
Deprecated.UseRemoteEndpointAwareNettySSLOptionsinstead.SSLOptionsimplementation based on Netty's SSL context.Netty has the ability to use OpenSSL if available, instead of the JDK's built-in engine. This yields better performance.
-
-
Field Summary
Fields Modifier and Type Field Description protected SslContextcontextDeprecated.
-
Constructor Summary
Constructors Constructor Description NettySSLOptions(SslContext context)Deprecated.Create a new instance from a given context.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SslHandlernewSSLHandler(SocketChannel channel)Deprecated.Creates a new SSL handler for the given Netty channel.
-
-
-
Field Detail
-
context
protected final SslContext context
Deprecated.
-
-
Constructor Detail
-
NettySSLOptions
public NettySSLOptions(SslContext context)
Deprecated.Create a new instance from a given context.- Parameters:
context- the Netty context.SslContextBuilder.forClient()provides a fluent API to build it.
-
-
Method Detail
-
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.
-
-