Class JdkSSLOptions

    • 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: 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.
      • 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.