Class RemoteEndpointAwareJdkSSLOptions

    • Constructor Detail

      • RemoteEndpointAwareJdkSSLOptions

        protected RemoteEndpointAwareJdkSSLOptions​(SSLContext context,
                                                   String[] cipherSuites)
        Creates a new instance.
        Parameters:
        context - the SSL context.
        cipherSuites - the cipher suites to use.
    • Method Detail

      • newSSLHandler

        public SslHandler newSSLHandler​(SocketChannel channel)
        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
        Overrides:
        newSSLHandler in class JdkSSLOptions
        Parameters:
        channel - the channel.
        Returns:
        the handler.
      • newSSLEngine

        protected SSLEngine newSSLEngine​(SocketChannel channel,
                                         InetSocketAddress remoteEndpoint)
        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.
        remoteEndpoint - the remote endpoint we are connecting to.
        Returns:
        the engine.
        Since:
        3.2.0