public class FtpsSocketFactory extends FtpSocketFactory
SocketFactory functionality for SSL Sockets.
 Currently the SSLContext is build from defaults. The SSLContext comprises of:
 m_Channel, m_DataServerSocket, m_LocalHost, m_LocalPort, m_RemoteHost, m_RemotePort| Constructor and Description | 
|---|
FtpsSocketFactory(FtpServerChannel channel,
                 InetAddress localHost,
                 int localPort,
                 InetAddress remoteHost,
                 int remotePort)  | 
| Modifier and Type | Method and Description | 
|---|---|
Socket | 
getConnection(FtpServer server)
Returns a Socket for data transfer. 
 | 
int | 
setPassive()
A PASV request asks the server to accept a data connection on a new TCP 
 port selected by the server. 
 | 
closeDataServerSocket, setActivepublic FtpsSocketFactory(FtpServerChannel channel, InetAddress localHost, int localPort, InetAddress remoteHost, int remotePort)
public int setPassive()
               throws IOException
setPassive in class FtpSocketFactoryIOExceptionpublic Socket getConnection(FtpServer server) throws Exception
getConnection in class FtpSocketFactoryExceptionCopyright © 2025. All rights reserved.