Class SecureDataFTPConnection


  • public class SecureDataFTPConnection
    extends org.ftp4che.impl.SecureFTPConnection
    SecureFTPConnection changed to force data channel encryption for implicit TLS/SSL connections with crypted data.
    • Field Summary

      • Fields inherited from class org.ftp4che.FTPConnection

        AUTH_SSL_FTP_CONNECTION, AUTH_TLS_FTP_CONNECTION, BUSY, CONNECTED, CSL_2WAY_INDIRECT_CALL, CSL_DIRECT_CALL, CSL_INDIRECT_CALL, DISCONNECTED, ERROR, factory, FTP_CONNECTION, FXP_FILE, FXPING_FILE_ENDED, FXPING_FILE_STARTED, IDLE, IMPLICIT_SSL_FTP_CONNECTION, IMPLICIT_SSL_WITH_CRYPTED_DATA_FTP_CONNECTION, IMPLICIT_TLS_FTP_CONNECTION, IMPLICIT_TLS_WITH_CRYPTED_DATA_FTP_CONNECTION, listenerList, MAX_DOWNLOAD_BANDWIDTH, MAX_UPLOAD_BANDWIDTH, RECEIVING_FILE, RECEIVING_FILE_ENDED, RECEIVING_FILE_STARTED, SENDING_FILE, SENDING_FILE_ENDED, SENDING_FILE_STARTED, socketProvider, UNKNOWN
    • Constructor Summary

      Constructors 
      Constructor Description
      SecureDataFTPConnection​(org.ftp4che.FTPConnection conn, String password, int timeout)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      List<org.ftp4che.util.ftpfile.FTPFile> getDirectoryListing​(String directory)
      Also sends a PROT P command for the implicit modes with crypted data.
      protected void setDataProtIfImplicit()
      Send a PROT P command if on implicit modes with crypted data.
      void uploadFile​(org.ftp4che.util.ftpfile.FTPFile fromFile, org.ftp4che.util.ftpfile.FTPFile toFile)
      Also sends a PROT P command for the implicit modes with crypted data.
      void uploadStream​(InputStream upStream, org.ftp4che.util.ftpfile.FTPFile toFile)
      Also sends a PROT P command for the implicit modes with crypted data.
      • Methods inherited from class org.ftp4che.impl.SecureFTPConnection

        connect
      • Methods inherited from class org.ftp4che.FTPConnection

        addFTPStatusListener, changeDirectory, changeToParentDirectory, checkFeatures, checkSystem, deleteDirectory, deleteFile, disconnect, downloadDirectory, downloadFile, downloadFile, downloadStream, fireConnectionStatusChanged, fireReplyMessageArrived, fxpDirectory, fxpFile, getAccount, getAddress, getConnectionStatus, getConnectionStatusLock, getConnectionType, getCRC, getCRC, getDirectoryListing, getDownloadBandwidth, getFastDirectoryListing, getFastDirectoryListing, getFTPStatusListeners, getKeyManagers, getMD5, getMD5, getModificationTime, getPassword, getProxy, getSecureFXPType, getTimeout, getTrustManagers, getUploadBandwidth, getUser, getWorkDirectory, isCpsvSupport, isPassiveMode, isPretSupport, isSecuredFxp, isSscnSupport, isTryResume, makeDirectory, moveFile, noOperation, removeDirectory, removeDirectory, removeFTPStatusListener, renameFile, sendCommand, sendPassiveMode, sendPortCommand, sendSiteCommand, setAccount, setAddress, setClientName, setConnectionStatus, setConnectionStatus, setConnectionStatusLock, setConnectionType, setCpsvSupport, setDownloadBandwidth, setKeyManagers, setModificationTime, setPassiveMode, setPassword, setPretSupport, setProxy, setSecureFXPType, setSSCNFxp, setSscnSupport, setTimeout, setTransferType, setTrustManagers, setTryResume, setUploadBandwidth, setUser, uploadDirectory, uploadFile
    • Constructor Detail

      • SecureDataFTPConnection

        public SecureDataFTPConnection​(org.ftp4che.FTPConnection conn,
                                       String password,
                                       int timeout)
                                throws org.ftp4che.exception.ConfigurationException
        Throws:
        org.ftp4che.exception.ConfigurationException
    • Method Detail

      • getDirectoryListing

        public List<org.ftp4che.util.ftpfile.FTPFile> getDirectoryListing​(String directory)
                                                                   throws IOException,
                                                                          org.ftp4che.exception.FtpWorkflowException,
                                                                          org.ftp4che.exception.FtpIOException
        Also sends a PROT P command for the implicit modes with crypted data.
        Overrides:
        getDirectoryListing in class org.ftp4che.FTPConnection
        Throws:
        IOException
        org.ftp4che.exception.FtpWorkflowException
        org.ftp4che.exception.FtpIOException
      • uploadFile

        public void uploadFile​(org.ftp4che.util.ftpfile.FTPFile fromFile,
                               org.ftp4che.util.ftpfile.FTPFile toFile)
                        throws IOException,
                               org.ftp4che.exception.FtpWorkflowException,
                               org.ftp4che.exception.FtpIOException
        Also sends a PROT P command for the implicit modes with crypted data.
        Overrides:
        uploadFile in class org.ftp4che.FTPConnection
        Throws:
        IOException
        org.ftp4che.exception.FtpWorkflowException
        org.ftp4che.exception.FtpIOException
      • uploadStream

        public void uploadStream​(InputStream upStream,
                                 org.ftp4che.util.ftpfile.FTPFile toFile)
                          throws IOException,
                                 org.ftp4che.exception.FtpWorkflowException,
                                 org.ftp4che.exception.FtpIOException
        Also sends a PROT P command for the implicit modes with crypted data.
        Overrides:
        uploadStream in class org.ftp4che.FTPConnection
        Throws:
        IOException
        org.ftp4che.exception.FtpWorkflowException
        org.ftp4che.exception.FtpIOException
      • setDataProtIfImplicit

        protected void setDataProtIfImplicit()
                                      throws IOException
        Send a PROT P command if on implicit modes with crypted data.
        Throws:
        IOException