public class SSLFTPControlSocket extends FTPControlSocket
SSLFTPControlSocket
encapsulates the SSL/TLS control channel.
It extends FTPControlSocket
, adding functionality for
constructing and controlling the secure control channel, as well as
creating secure data channel. Methods are package access
only - not for public use.Modifier and Type | Field and Description |
---|---|
static int |
IMPLICIT_FTPS_CONTROL_PORT
The default and standard control port number for implicit FTPS
|
autoPassiveIPSubstitution, CONTROL_PORT, controlSock, cvsId, dataChannelCallback, EPSV_END, EPSV_START, forcedActiveIP, listenOnAllInterfaces, MAX_ACTIVE_RETRY, reader, remoteAddr, writer
Modifier and Type | Method and Description |
---|---|
protected com.enterprisedt.net.ftp.internal.FTPDataSocket |
createDataSocketPASV()
Request a data socket be created on the server, connect to it and return
our connected socket.
|
boolean |
isSecureMode()
Is this socket in secure mode?
|
void |
logout()
Quit this FTP session and clean up.
|
protected com.enterprisedt.net.ftp.internal.FTPDataSocket |
newActiveDataSocket(int port)
Constructs a new
FTPDataSocket object (server mode) which will
listen on the given port number. |
protected com.enterprisedt.net.ftp.internal.FTPDataSocket |
newPassiveDataSocket(java.lang.String remoteHost,
int port)
Constructs a new
FTPDataSocket object (client mode) and connect
to the given remote host and port number. |
protected void |
setDataPort(java.net.InetAddress host,
int portNo)
Sets the data port on the server, that is, sends a EPRT command for IPV6
addresses, for example, EPRT |2|1080::8:800:200C:417A|5282|
|
void |
shutdownSSL() |
protected boolean |
usingProxy() |
close, initStreams, isIPV6, sendCommand, setActivePortRange, setAutoPassiveIPSubstitution, toByteArray, validateReply, validateReply, validateReply
public static final int IMPLICIT_FTPS_CONTROL_PORT
protected boolean usingProxy()
usingProxy
in class FTPControlSocket
public boolean isSecureMode()
isSecureMode
in class FTPControlSocket
public void logout() throws java.io.IOException
logout
in class FTPControlSocket
java.io.IOException
- Thrown if an I/O problem occured during closure.public void shutdownSSL() throws java.io.IOException, FTPException
java.io.IOException
FTPException
protected void setDataPort(java.net.InetAddress host, int portNo) throws java.io.IOException, FTPException
setDataPort
in class FTPControlSocket
host
- the local host the server will connect toportNo
- the port number to connect tojava.io.IOException
FTPException
protected com.enterprisedt.net.ftp.internal.FTPDataSocket createDataSocketPASV() throws java.io.IOException, FTPException
createDataSocketPASV
in class FTPControlSocket
java.io.IOException
FTPException
protected com.enterprisedt.net.ftp.internal.FTPDataSocket newActiveDataSocket(int port) throws java.io.IOException
FTPDataSocket
object (server mode) which will
listen on the given port number.newActiveDataSocket
in class FTPControlSocket
port
- Remote port to listen on.FTPDataSocket
object (server mode) which is
configured to listen on the given port.java.io.IOException
- Thrown if an error occurred when creating the socket.protected com.enterprisedt.net.ftp.internal.FTPDataSocket newPassiveDataSocket(java.lang.String remoteHost, int port) throws java.io.IOException
FTPDataSocket
object (client mode) and connect
to the given remote host and port number.newPassiveDataSocket
in class FTPControlSocket
remoteHost
- Remote host to connect to.port
- Remote port to connect to.FTPDataSocket
object (client mode) which is
connected to the given server.java.io.IOException
- Thrown if no TCP/IP connection could be made.Copyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.