Class RpcSSLSocketFactory


  • public class RpcSSLSocketFactory
    extends javax.net.ssl.SSLSocketFactory
    A factory for creating SSL socket objects.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  RpcSSLSocketFactory.TrustAllTrustManager
      This class allow any X509 certificates to be used to authenticate the remote side of a secure socket, including self-signed certificates.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.Socket createSocket()  
      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 socket, java.lang.String host, int port, boolean autoClose)  
      java.lang.String[] getDefaultCipherSuites()  
      static RpcSSLSocketFactory getInstance​(java.util.Properties properties)
      Gets the single instance of RpcSSLSocketFactory.
      java.lang.String[] getSupportedCipherSuites()  
      • Methods inherited from class javax.net.ssl.SSLSocketFactory

        createSocket, getDefault
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInstance

        public static RpcSSLSocketFactory getInstance​(java.util.Properties properties)
        Gets the single instance of RpcSSLSocketFactory.
        Parameters:
        properties - properties
        Returns:
        single instance of RpcSSLSocketFactory
      • createSocket

        public java.net.Socket createSocket​(java.net.Socket socket,
                                            java.lang.String host,
                                            int port,
                                            boolean autoClose)
                                     throws java.io.IOException,
                                            java.net.UnknownHostException
        Specified by:
        createSocket in class javax.net.ssl.SSLSocketFactory
        Throws:
        java.io.IOException
        java.net.UnknownHostException
        See Also:
        SSLSocketFactory.createSocket(java.net.Socket, java.lang.String, int, boolean)
      • createSocket

        public java.net.Socket createSocket()
                                     throws java.io.IOException
        Overrides:
        createSocket in class javax.net.SocketFactory
        Throws:
        java.io.IOException
        See Also:
        SocketFactory.createSocket()
      • createSocket

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

        public java.net.Socket createSocket​(java.lang.String host,
                                            int port,
                                            java.net.InetAddress localHost,
                                            int localPort)
                                     throws java.io.IOException,
                                            java.net.UnknownHostException
        Specified by:
        createSocket in class javax.net.SocketFactory
        Throws:
        java.io.IOException
        java.net.UnknownHostException
        See Also:
        SocketFactory.createSocket(java.lang.String, int, java.net.InetAddress, int)
      • 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
        See Also:
        SocketFactory.createSocket(java.net.InetAddress, int, java.net.InetAddress, int)
      • getDefaultCipherSuites

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

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