Interface RemoteEndpointAwareSSLOptions

    • Method Detail

      • newSSLHandler

        SslHandler newSSLHandler​(SocketChannel channel,
                                 InetSocketAddress remoteEndpoint)
        Creates a new SSL handler for the given Netty channel and the given remote endpoint.

        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: RemoteEndpointAwareJdkSSLOptions and RemoteEndpointAwareNettySSLOptions.

        Parameters:
        channel - the channel.
        remoteEndpoint - the remote endpoint address.
        Returns:
        a newly-created SslHandler.