Class DefaultSSLSocketFactory
- java.lang.Object
-
- com.github.shyiko.mysql.binlog.network.DefaultSSLSocketFactory
-
- All Implemented Interfaces:
SSLSocketFactory
public class DefaultSSLSocketFactory extends Object implements SSLSocketFactory
- Author:
- Stanley Shyiko
-
-
Constructor Summary
Constructors Constructor Description DefaultSSLSocketFactory()
DefaultSSLSocketFactory(String protocol)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SSLSocket
createSocket(Socket socket)
protected void
initSSLContext(SSLContext sc)
-
-
-
Constructor Detail
-
DefaultSSLSocketFactory
public DefaultSSLSocketFactory()
-
DefaultSSLSocketFactory
public DefaultSSLSocketFactory(String protocol)
- Parameters:
protocol
- TLSv1, TLSv1.1 or TLSv1.2. Since JDK 11.0.11, TLSv1 and TLSv1.1 are no longer supported.
-
-
Method Detail
-
createSocket
public SSLSocket createSocket(Socket socket) throws SocketException
- Specified by:
createSocket
in interfaceSSLSocketFactory
- Throws:
SocketException
-
initSSLContext
protected void initSSLContext(SSLContext sc) throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
-