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 SSLSocketcreateSocket(Socket socket)protected voidinitSSLContext(SSLContext sc)
-
-
-
Constructor Detail
-
DefaultSSLSocketFactory
public DefaultSSLSocketFactory()
-
DefaultSSLSocketFactory
public DefaultSSLSocketFactory(String protocol)
- Parameters:
protocol- TLSv1, TLSv1.1 or TLSv1.2 (the last two require JDK 7+)
-
-
Method Detail
-
createSocket
public SSLSocket createSocket(Socket socket) throws SocketException
- Specified by:
createSocketin interfaceSSLSocketFactory- Throws:
SocketException
-
initSSLContext
protected void initSSLContext(SSLContext sc) throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
-