Class FTPSSocketFactory


  • public class FTPSSocketFactory
    extends javax.net.SocketFactory
    Socket factory for FTPS connections.
    Since:
    2.0
    • Field Detail

      • context

        private final javax.net.ssl.SSLContext context
    • Constructor Detail

      • FTPSSocketFactory

        public FTPSSocketFactory​(javax.net.ssl.SSLContext context)
        Constructs a new instance.
        Parameters:
        context - The SSL context.
    • Method Detail

      • createServerSocket

        @Deprecated
        public java.net.ServerSocket createServerSocket​(int port)
                                                 throws java.io.IOException
        Parameters:
        port - the port
        Returns:
        the socket
        Throws:
        java.io.IOException - on error
      • createServerSocket

        @Deprecated
        public java.net.ServerSocket createServerSocket​(int port,
                                                        int backlog)
                                                 throws java.io.IOException
        Parameters:
        port - the port
        backlog - the backlog
        Returns:
        the socket
        Throws:
        java.io.IOException - on error
      • createServerSocket

        @Deprecated
        public java.net.ServerSocket createServerSocket​(int port,
                                                        int backlog,
                                                        java.net.InetAddress ifAddress)
                                                 throws java.io.IOException
        Parameters:
        port - the port
        backlog - the backlog
        ifAddress - the interface
        Returns:
        the socket
        Throws:
        java.io.IOException - on error
      • createSocket

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

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

        public java.net.Socket createSocket​(java.lang.String address,
                                            int port,
                                            java.net.InetAddress localAddress,
                                            int localPort)
                                     throws java.net.UnknownHostException,
                                            java.io.IOException
        Specified by:
        createSocket in class javax.net.SocketFactory
        Throws:
        java.net.UnknownHostException
        java.io.IOException
      • init

        @Deprecated
        public java.net.ServerSocket init​(java.net.ServerSocket socket)
                                   throws java.io.IOException
        Parameters:
        socket - the socket
        Returns:
        the socket
        Throws:
        java.io.IOException - on error