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