Enable creation of SSLHandler with remote address information. This is needed to instantiate SSLEngine/SSLHandler with remote address information set, which enables doing hostname verification (for example through a custom TrustManager).
We cannot take this information from SocketChannel since it is not connected yet at the time Connection.Initializer creates the SSLHandler.
External PR:
https://github.com/datastax/java-driver/pull/782
Enable creation of
SSLHandler
with remote address information. This is needed to instantiate SSLEngine/SSLHandler with remote address information set, which enables doing hostname verification (for example through a custom TrustManager).We cannot take this information from
SocketChannel
since it is not connected yet at the timeConnection.Initializer
creates theSSLHandler
.