Class NettySSLOptions

    • 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: SSLOptions
        Creates 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: JdkSSLOptions and NettySSLOptions.

        Specified by:
        newSSLHandler in interface SSLOptions
        Parameters:
        channel - the channel.
        Returns:
        the handler.