public class DefaultTlsSocketPlugin extends Object implements TlsSocketPlugin
Constructor and Description |
---|
DefaultTlsSocketPlugin() |
Modifier and Type | Method and Description |
---|---|
SSLSocketFactory |
getSocketFactory(Options options)
Get socket factory.
|
String |
name()
plugin name.
|
String |
type()
plugin type.
|
void |
verify(String host,
SSLSession session,
Options options,
long serverThreadId)
Host name verifier implementation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSocket
public String name()
TlsSocketPlugin
name
in interface TlsSocketPlugin
public String type()
TlsSocketPlugin
type
in interface TlsSocketPlugin
public SSLSocketFactory getSocketFactory(Options options) throws SQLException
TlsSocketPlugin
getSocketFactory
in interface TlsSocketPlugin
options
- connection string option. Non standard option are stored in `nonMappedOptions`
if any specific option is needed.SQLException
- if socket factory configuration failed.public void verify(String host, SSLSession session, Options options, long serverThreadId) throws SSLException
TlsSocketPlugin
verify
in interface TlsSocketPlugin
host
- hostnamesession
- 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.