Class DefaultTlsSocketPlugin
- java.lang.Object
-
- org.mariadb.jdbc.internal.protocol.tls.DefaultTlsSocketPlugin
-
- All Implemented Interfaces:
TlsSocketPlugin
public class DefaultTlsSocketPlugin extends Object implements TlsSocketPlugin
-
-
Constructor Summary
Constructors Constructor Description DefaultTlsSocketPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SSLSocketFactorygetSocketFactory(Options options)Get socket factory.Stringname()plugin name.Stringtype()plugin type.voidverify(String host, SSLSession session, Options options, long serverThreadId)Host name verifier implementation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mariadb.jdbc.tls.TlsSocketPlugin
createSocket
-
-
-
-
Method Detail
-
name
public String name()
Description copied from interface:TlsSocketPluginplugin name.- Specified by:
namein interfaceTlsSocketPlugin- Returns:
- plugin name. ex: Mysql native password
-
type
public String type()
Description copied from interface:TlsSocketPluginplugin type.- Specified by:
typein interfaceTlsSocketPlugin- Returns:
- plugin type
-
getSocketFactory
public SSLSocketFactory getSocketFactory(Options options) throws SQLException
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
-
-