public interface TlsSocketPlugin
| Modifier and Type | Method and Description |
|---|---|
default SSLSocket |
createSocket(Socket socket,
SSLSocketFactory sslSocketFactory)
Returns a socket layered over an existing socket negotiating the use of SSL over an existing
socket.
|
SSLSocketFactory |
getSocketFactory(Configuration conf,
ExceptionFactory exceptionFactory)
Get socket factory.
|
String |
type()
plugin type.
|
void |
verify(String host,
SSLSession sslSession,
long serverThreadId)
Host name verifier implementation.
|
String type()
SSLSocketFactory getSocketFactory(Configuration conf, ExceptionFactory exceptionFactory) throws SQLException
conf - connection string option. Non standard option are stored in `nonMappedOptions` if
any specific option is needed.exceptionFactory - exception handlerSQLException - if socket factory configuration failed.default SSLSocket createSocket(Socket socket, SSLSocketFactory sslSocketFactory) throws IOException
socket - existing socketsslSocketFactory - SSL socket factoryIOException - if any socket error occurs.void verify(String host, SSLSession sslSession, long serverThreadId) throws SSLException
host - hostnamesslSession - ssl sessionserverThreadId - current server threadIdSSLException - if verification failCopyright © 2022 SingleStore. All rights reserved.