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(Options options)
Get socket factory.
|
String |
name()
plugin name.
|
String |
type()
plugin type.
|
void |
verify(String host,
SSLSession sslSession,
Options options,
long serverThreadId)
Host name verifier implementation.
|
String name()
String type()
SSLSocketFactory getSocketFactory(Options options) throws SQLException
options
- connection string option. Non standard option are stored in `nonMappedOptions`
if any specific option is needed.SQLException
- 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, Options options, long serverThreadId) throws SSLException
host
- hostnamesslSession
- ssl sessionoptions
- connection string option. Non standard option are stored in * `nonMappedOptions`
if any specific option is needed.serverThreadId
- current server threadIdSSLException
- if verification failCopyright © 2020 mariadb.com. All rights reserved.