com.github.shyiko.mysql.binlog.network
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSSLSocketFactory
public DefaultSSLSocketFactory()
DefaultSSLSocketFactory
public DefaultSSLSocketFactory(String protocol)
- Parameters:
protocol
- TLSv1, TLSv1.1 or TLSv1.2 (the last two require JDK 7+)
createSocket
public SSLSocket createSocket(Socket socket)
throws SocketException
- Specified by:
createSocket
in interface SSLSocketFactory
- Throws:
SocketException
initSSLContext
protected void initSSLContext(SSLContext sc)
throws GeneralSecurityException
- Throws:
GeneralSecurityException
Copyright © 2017. All Rights Reserved.