Package com.datastax.driver.core
Interface RemoteEndpointAwareSSLOptions
-
- All Superinterfaces:
SSLOptions
- All Known Subinterfaces:
ExtendedRemoteEndpointAwareSslOptions
- All Known Implementing Classes:
RemoteEndpointAwareJdkSSLOptions,RemoteEndpointAwareNettySSLOptions,SniSSLOptions
public interface RemoteEndpointAwareSSLOptions extends SSLOptions
Child interface toSSLOptionswith the possibility to pass remote endpoint data when instantiatingSslHandlers.This is needed when e.g. hostname verification is required. See JAVA-1364 for details.
The reason this is a child interface is to keep
SSLOptionsbackwards-compatible. This interface may be be merged intoSSLOptionsin a later major release.- Since:
- 3.2.0
- See Also:
- JAVA-1364
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SslHandlernewSSLHandler(SocketChannel channel, InetSocketAddress remoteEndpoint)Creates a new SSL handler for the given Netty channel and the given remote endpoint.-
Methods inherited from interface com.datastax.driver.core.SSLOptions
newSSLHandler
-
-
-
-
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:
RemoteEndpointAwareJdkSSLOptionsandRemoteEndpointAwareNettySSLOptions.- Parameters:
channel- the channel.remoteEndpoint- the remote endpoint address.- Returns:
- a newly-created
SslHandler.
-
-