com.enterprisedt.net.ftp.ssl
Class SSLFTPControlSocket

java.lang.Object
  extended by com.enterprisedt.net.ftp.FTPControlSocket
      extended by com.enterprisedt.net.ftp.ssl.SSLFTPControlSocket

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.

Version:
$Revision: 1.36 $
Author:
Hans Andersen

Field Summary
static int IMPLICIT_FTPS_CONTROL_PORT
          The default and standard control port number for implicit FTPS
 
Fields inherited from class com.enterprisedt.net.ftp.FTPControlSocket
autoPassiveIPSubstitution, CONTROL_PORT, controlSock, cvsId, dataChannelCallback, forcedActiveIP, listenOnAllInterfaces, MAX_ACTIVE_RETRY, reader, remoteAddr, writer
 
Method Summary
 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.
 void shutdownSSL()
           
protected  boolean usingProxy()
           
 
Methods inherited from class com.enterprisedt.net.ftp.FTPControlSocket
close, createDataSocketPASV, initStreams, sendCommand, setActivePortRange, setAutoPassiveIPSubstitution, setDataPort, toByteArray, validateReply, validateReply, validateReply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMPLICIT_FTPS_CONTROL_PORT

public static final int IMPLICIT_FTPS_CONTROL_PORT
The default and standard control port number for implicit FTPS

See Also:
Constant Field Values
Method Detail

usingProxy

protected boolean usingProxy()
Overrides:
usingProxy in class FTPControlSocket

logout

public void logout()
            throws java.io.IOException
Quit this FTP session and clean up.

Overrides:
logout in class FTPControlSocket
Throws:
java.io.IOException - Thrown if an I/O problem occured during closure.

shutdownSSL

public void shutdownSSL()
                 throws java.io.IOException,
                        FTPException
Throws:
java.io.IOException
FTPException

newActiveDataSocket

protected com.enterprisedt.net.ftp.internal.FTPDataSocket newActiveDataSocket(int port)
                                                                       throws java.io.IOException
Constructs a new FTPDataSocket object (server mode) which will listen on the given port number.

Overrides:
newActiveDataSocket in class FTPControlSocket
Parameters:
port - Remote port to listen on.
Returns:
A new FTPDataSocket object (server mode) which is configured to listen on the given port.
Throws:
java.io.IOException - Thrown if an error occurred when creating the socket.

newPassiveDataSocket

protected com.enterprisedt.net.ftp.internal.FTPDataSocket newPassiveDataSocket(java.lang.String remoteHost,
                                                                               int port)
                                                                        throws java.io.IOException
Constructs a new FTPDataSocket object (client mode) and connect to the given remote host and port number.

Overrides:
newPassiveDataSocket in class FTPControlSocket
Parameters:
remoteHost - Remote host to connect to.
port - Remote port to connect to.
Returns:
A new FTPDataSocket object (client mode) which is connected to the given server.
Throws:
java.io.IOException - Thrown if no TCP/IP connection could be made.


Copyright © 2001-2009 Enterprise Distributed Technologies Ltd. All Rights Reserved.