Class DefaultTlsSocketPlugin
java.lang.Object
org.mariadb.jdbc.internal.protocol.tls.DefaultTlsSocketPlugin
- All Implemented Interfaces:
TlsSocketPlugin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSocketFactory(Options options) Get socket factory.name()plugin name.type()plugin type.voidverify(String host, SSLSession session, Options options, long serverThreadId) Host name verifier implementation.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TlsSocketPlugin
createSocket
-
Constructor Details
-
DefaultTlsSocketPlugin
public DefaultTlsSocketPlugin()
-
-
Method Details
-
name
Description copied from interface:TlsSocketPluginplugin name.- Specified by:
namein interfaceTlsSocketPlugin- Returns:
- plugin name. ex: Mysql native password
-
type
Description copied from interface:TlsSocketPluginplugin type.- Specified by:
typein interfaceTlsSocketPlugin- Returns:
- plugin type
-
getSocketFactory
Description copied from interface:TlsSocketPluginGet socket factory.- Specified by:
getSocketFactoryin interfaceTlsSocketPlugin- Parameters:
options- connection string option. Non standard option are stored in `nonMappedOptions` if any specific option is needed.- Returns:
- custom SSL socket factory
- Throws:
SQLException- if socket factory configuration failed.
-
verify
public void verify(String host, SSLSession session, Options options, long serverThreadId) throws SSLException Description copied from interface:TlsSocketPluginHost name verifier implementation.- Specified by:
verifyin interfaceTlsSocketPlugin- Parameters:
host- hostnamesession- ssl sessionoptions- connection string option. Non standard option are stored in * `nonMappedOptions` if any specific option is needed.serverThreadId- current server threadId- Throws:
SSLException- if verification fail
-