Class FtpSslConnection

  • All Implemented Interfaces:
    AdaptrisComponent, AdaptrisConnection, ComponentLifecycle, ComponentLifecycleExtension, StateManagedComponent

    @ComponentProfile(summary="Connect to a FTP Server with explicit SSL with a username and password",
                      tag="connections,ftps")
    public class FtpSslConnection
    extends FtpConnectionImp
    Allows connections to FTP (Explicit) SSL connections.

    This was tested against vsftpd (2.0.5) which was configured with the following additional parameters.

     
          ssl_enable=YES
          allow_anon_ssl=NO
          force_local_data_ssl=NO
          force_local_logins_ssl=NO
          ssl_tlsv1=YES
          ssl_sslv2=NO
          ssl_sslv3=NO
       
     

    Implicit FTP/SSL connections have not been tested; but can be enabled using setImplicitSsl(Boolean)

    In the adapter configuration file this class is aliased as ftp-ssl-connection which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • FtpSslConnection

        public FtpSslConnection()
    • Method Detail

      • acceptProtocol

        protected boolean acceptProtocol​(java.lang.String s)
        Description copied from class: FileTransferConnection
        Validate the URL Protocol when a URL is used.
        Specified by:
        acceptProtocol in class FileTransferConnection
        Parameters:
        s - the URL Protocol
        Returns:
        true if the URL protocol is acceptable to the concrete imp.
      • getImplicitSsl

        public java.lang.Boolean getImplicitSsl()
      • setImplicitSsl

        public void setImplicitSsl​(java.lang.Boolean b)
        Set the connection to use Implicit SSL

        For an explanation of implicit SSL, check wikipedia.

        Parameters:
        b - defaults to null (false)