Package br.com.moip.ssl
Class SSLSupport
java.lang.Object
javax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
br.com.moip.ssl.SSLSupport
public class SSLSupport
extends javax.net.ssl.SSLSocketFactory
-
Constructor Summary
Constructors Constructor Description SSLSupport()SSLSupport(javax.net.ssl.KeyManager[] km, javax.net.ssl.TrustManager[] tm, java.security.SecureRandom random)SSLSupport(javax.net.ssl.SSLContext ctx) -
Method Summary
Modifier and Type Method Description java.net.SocketcreateSocket(java.lang.String host, int port)java.net.SocketcreateSocket(java.lang.String host, int port, java.net.InetAddress localHost, int localPort)java.net.SocketcreateSocket(java.net.InetAddress host, int port)java.net.SocketcreateSocket(java.net.InetAddress address, int port, java.net.InetAddress localAddress, int localPort)java.net.SocketcreateSocket(java.net.Socket s, java.lang.String host, int port, boolean autoClose)protected java.lang.String[]getCipherList()java.lang.String[]getDefaultCipherSuites()java.lang.String[]getDefaultProtocols()protected java.lang.String[]getProtocolList()java.lang.String[]getSupportedCipherSuites()java.lang.String[]getSupportedProtocols()
-
Constructor Details
-
SSLSupport
public SSLSupport() throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.io.IOException- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.KeyManagementExceptionjava.io.IOException
-
SSLSupport
public SSLSupport(javax.net.ssl.KeyManager[] km, javax.net.ssl.TrustManager[] tm, java.security.SecureRandom random) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.io.IOException- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.KeyManagementExceptionjava.io.IOException
-
SSLSupport
public SSLSupport(javax.net.ssl.SSLContext ctx) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.io.IOException- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.KeyManagementExceptionjava.io.IOException
-
-
Method Details
-
getDefaultCipherSuites
public java.lang.String[] getDefaultCipherSuites()- Specified by:
getDefaultCipherSuitesin classjavax.net.ssl.SSLSocketFactory
-
getSupportedCipherSuites
public java.lang.String[] getSupportedCipherSuites()- Specified by:
getSupportedCipherSuitesin classjavax.net.ssl.SSLSocketFactory
-
getDefaultProtocols
public java.lang.String[] getDefaultProtocols() -
getSupportedProtocols
public java.lang.String[] getSupportedProtocols() -
createSocket
public java.net.Socket createSocket(java.net.Socket s, java.lang.String host, int port, boolean autoClose) throws java.io.IOException- Specified by:
createSocketin classjavax.net.ssl.SSLSocketFactory- Throws:
java.io.IOException
-
createSocket
public java.net.Socket createSocket(java.net.InetAddress address, int port, java.net.InetAddress localAddress, int localPort) throws java.io.IOException- Specified by:
createSocketin classjavax.net.SocketFactory- Throws:
java.io.IOException
-
createSocket
public java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress localHost, int localPort) throws java.io.IOException- Specified by:
createSocketin classjavax.net.SocketFactory- Throws:
java.io.IOException
-
createSocket
public java.net.Socket createSocket(java.net.InetAddress host, int port) throws java.io.IOException- Specified by:
createSocketin classjavax.net.SocketFactory- Throws:
java.io.IOException
-
createSocket
public java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException- Specified by:
createSocketin classjavax.net.SocketFactory- Throws:
java.io.IOException
-
getProtocolList
protected java.lang.String[] getProtocolList() throws java.io.IOException- Throws:
java.io.IOException
-
getCipherList
protected java.lang.String[] getCipherList()
-