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, waitcreateSocketpublic String name()
TlsSocketPluginname in interface TlsSocketPluginpublic String type()
TlsSocketPlugintype in interface TlsSocketPluginpublic SSLSocketFactory getSocketFactory(Options options) throws SQLException
TlsSocketPlugingetSocketFactory in interface TlsSocketPluginoptions - 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
TlsSocketPluginverify in interface TlsSocketPluginhost - 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 © 2022 oceanbase.com. All rights reserved.