Package org.mariadb.jdbc.plugin.tls.main
Class DefaultTlsSocketPlugin
- java.lang.Object
-
- org.mariadb.jdbc.plugin.tls.main.DefaultTlsSocketPlugin
-
- All Implemented Interfaces:
TlsSocketPlugin
public class DefaultTlsSocketPlugin extends Object implements TlsSocketPlugin
Default TLS socket plugin
-
-
Constructor Summary
Constructors Constructor Description DefaultTlsSocketPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyManager[]getKeyManager(Configuration conf, ExceptionFactory exceptionFactory)TrustManager[]getTrustManager(Configuration conf, ExceptionFactory exceptionFactory, HostAddress hostAddress)Stringtype()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, wait
-
Methods inherited from interface org.mariadb.jdbc.plugin.TlsSocketPlugin
createSocket
-
-
-
-
Method Detail
-
type
public String type()
Description copied from interface:TlsSocketPluginplugin type.- Specified by:
typein interfaceTlsSocketPlugin- Returns:
- plugin type
-
getTrustManager
public TrustManager[] getTrustManager(Configuration conf, ExceptionFactory exceptionFactory, HostAddress hostAddress) throws SQLException
- Specified by:
getTrustManagerin interfaceTlsSocketPlugin- Throws:
SQLException
-
getKeyManager
public KeyManager[] getKeyManager(Configuration conf, ExceptionFactory exceptionFactory) throws SQLException
- Specified by:
getKeyManagerin interfaceTlsSocketPlugin- Throws:
SQLException
-
verify
public void verify(String host, SSLSession session, long serverThreadId) throws SSLException
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
-
-