com.github.shyiko.mysql.binlog.network
Class DefaultSSLSocketFactory

java.lang.Object
  extended by com.github.shyiko.mysql.binlog.network.DefaultSSLSocketFactory
All Implemented Interfaces:
SSLSocketFactory

public class DefaultSSLSocketFactory
extends Object
implements SSLSocketFactory

Author:
Stanley Shyiko

Constructor Summary
DefaultSSLSocketFactory()
           
DefaultSSLSocketFactory(String protocol)
           
 
Method Summary
 SSLSocket createSocket(Socket socket)
           
protected  void initSSLContext(SSLContext sc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
createSocket in interface SSLSocketFactory
Throws:
SocketException

initSSLContext

protected void initSSLContext(SSLContext sc)
                       throws GeneralSecurityException
Throws:
GeneralSecurityException


Copyright © 2017. All Rights Reserved.