Class FtpsFileSystemConfigBuilder

    • Method Detail

      • setFtpsMode

        public void setFtpsMode​(FileSystemOptions opts,
                                FtpsMode ftpsMode)
        Set FTPS mode, either "implicit" or "explicit".

        Note, that implicit mode is not standardized and considered as deprecated. Some unit tests for VFS fail with implicit mode and it is not yet clear if its a problem with Commons VFS/Commons Net or our test server Apache FTP/SSHD.

        Parameters:
        opts - The FileSystemOptions.
        ftpsMode - The mode to establish a FTPS connection.
        Since:
        2.1
        See Also:
        Wikipedia: FTPS/Implicit
      • setFtpsType

        @Deprecated
        public void setFtpsType​(FileSystemOptions opts,
                                java.lang.String ftpsType)
        Deprecated.
        Set FTPS type, either "implicit" or "explicit".

        Note, that implicit mode is not standardized and considered as deprecated. Some unit tests for VFS fail with implicit mode and it is not yet clear if its a problem with Commons VFS/Commons Net or our test server Apache FTP/SSHD.

        Parameters:
        opts - The FileSystemOptions.
        ftpsType - The file type.
        See Also:
        Wikipedia: FTPS/Implicit
      • getKeyManager

        public javax.net.ssl.KeyManager getKeyManager​(FileSystemOptions opts)
        Gets the KeyManager used to provide a client-side certificate if the FTPS server requests it.
        Parameters:
        opts - The FileSystemOptions.
        Returns:
        the key manager instance or null
        Since:
        2.1
        See Also:
        FTPSClient.setKeyManager(KeyManager)
      • setKeyManager

        public void setKeyManager​(FileSystemOptions opts,
                                  javax.net.ssl.KeyManager keyManager)
        Sets the KeyManager used to provide a client-side certificate if the FTPS server requests it.
        Parameters:
        opts - The FileSystemOptions.
        keyManager - The key manager instance.
        Since:
        2.1
        See Also:
        FTPSClient.setKeyManager(KeyManager)
      • getTrustManager

        public javax.net.ssl.TrustManager getTrustManager​(FileSystemOptions opts)
        Gets the TrustManager that validates the FTPS server's certificate.

        If the params do not contain the key for the trust manager, it will return a trust manger that simply checks this certificate for validity.

        Parameters:
        opts - The FileSystemOptions.
        Returns:
        the trust manager instance or null
        Since:
        2.1
        See Also:
        FTPSClient.setTrustManager(TrustManager)
      • setTrustManager

        public void setTrustManager​(FileSystemOptions opts,
                                    javax.net.ssl.TrustManager trustManager)
        Sets the TrustManager that validates the FTPS server's certificate.
        Parameters:
        opts - The FileSystemOptions.
        trustManager - The trust manager instance.
        Since:
        2.1
        See Also:
        FTPSClient.setTrustManager(TrustManager)