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.Socket createSocket​(java.lang.String host, int port)  
    java.net.Socket createSocket​(java.lang.String host, int port, java.net.InetAddress localHost, int localPort)  
    java.net.Socket createSocket​(java.net.InetAddress host, int port)  
    java.net.Socket createSocket​(java.net.InetAddress address, int port, java.net.InetAddress localAddress, int localPort)  
    java.net.Socket createSocket​(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()  

    Methods inherited from class javax.net.ssl.SSLSocketFactory

    createSocket, getDefault

    Methods inherited from class javax.net.SocketFactory

    createSocket

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SSLSupport

      public SSLSupport() throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.io.IOException
      Throws:
      java.security.NoSuchAlgorithmException
      java.security.KeyManagementException
      java.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.NoSuchAlgorithmException
      java.security.KeyManagementException
      java.io.IOException
    • SSLSupport

      public SSLSupport​(javax.net.ssl.SSLContext ctx) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.io.IOException
      Throws:
      java.security.NoSuchAlgorithmException
      java.security.KeyManagementException
      java.io.IOException
  • Method Details

    • getDefaultCipherSuites

      public java.lang.String[] getDefaultCipherSuites()
      Specified by:
      getDefaultCipherSuites in class javax.net.ssl.SSLSocketFactory
    • getSupportedCipherSuites

      public java.lang.String[] getSupportedCipherSuites()
      Specified by:
      getSupportedCipherSuites in class javax.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:
      createSocket in class javax.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:
      createSocket in class javax.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:
      createSocket in class javax.net.SocketFactory
      Throws:
      java.io.IOException
    • createSocket

      public java.net.Socket createSocket​(java.net.InetAddress host, int port) throws java.io.IOException
      Specified by:
      createSocket in class javax.net.SocketFactory
      Throws:
      java.io.IOException
    • createSocket

      public java.net.Socket createSocket​(java.lang.String host, int port) throws java.io.IOException
      Specified by:
      createSocket in class javax.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()