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, setActive
public FtpsSocketFactory(FtpServerChannel channel, InetAddress localHost, int localPort, InetAddress remoteHost, int remotePort)
public int setPassive() throws IOException
setPassive
in class FtpSocketFactory
IOException
public Socket getConnection(FtpServer server) throws Exception
getConnection
in class FtpSocketFactory
Exception
Copyright © 2023. All rights reserved.