Class SftpConfiguration

    • Field Detail

      • STARTUP_BANNER

        public static final java.lang.String STARTUP_BANNER
        SFTP startup banner flag.
        See Also:
        Constant Field Values
      • SOFTWARE_VERSION

        public static final java.lang.String SOFTWARE_VERSION
        SFTP software version flag.
        See Also:
        Constant Field Values
      • AUTH_BANNER

        public static final java.lang.String AUTH_BANNER
        SFTP authentication banner flag.
        See Also:
        Constant Field Values
      • SUPPORTED_KEXES

        public static final java.lang.String SUPPORTED_KEXES
        SFTP key exchange algorithms sequence flag.
        See Also:
        Constant Field Values
      • SUPPORTED_KEYS

        public static final java.lang.String SUPPORTED_KEYS
        SFTP host/public key algorithms sequence flag.
        See Also:
        Constant Field Values
      • SUPPORTED_CIPHERS

        public static final java.lang.String SUPPORTED_CIPHERS
        SFTP cipher algorithms sequence flag.
        See Also:
        Constant Field Values
      • SUPPORTED_MACS

        public static final java.lang.String SUPPORTED_MACS
        SFTP MAC algorithms sequence flag.
        See Also:
        Constant Field Values
      • SUPPORTED_COMPRESSIONS

        public static final java.lang.String SUPPORTED_COMPRESSIONS
        SFTP compression algorithms sequence flag.
        See Also:
        Constant Field Values
      • CONNECTION_TIMEOUT

        public static final java.lang.String CONNECTION_TIMEOUT
        SFTP connection timeout flag.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SftpConfiguration

        public SftpConfiguration​(java.lang.String startupBanner,
                                 java.lang.String softwareVersion,
                                 java.lang.String authBanner,
                                 java.lang.String[] supportedKexes,
                                 java.lang.String[] supportedKeys,
                                 java.lang.String[] supportedCiphers,
                                 java.lang.String[] supportedMacs,
                                 java.lang.String[] supportedCompressions,
                                 long connectionTimeout,
                                 java.lang.Integer receiveBufferSize,
                                 java.lang.Integer sendBufferSize,
                                 boolean tcpNoDelayEnabled,
                                 boolean disableRealPathExpandedLongName,
                                 int backlog)
        Creates new instance.
        Parameters:
        startupBanner - startup banner
        softwareVersion - software version
        authBanner - authentication banner
        supportedKexes - supported key exchange algorithms
        supportedKeys - supported key algorithms
        supportedCiphers - supported cipher algorithms
        supportedMacs - supported MAC algorithms
        supportedCompressions - supported compression algorithms
        connectionTimeout - connection timeout in ms
        receiveBufferSize - socket receive buffer size in bytes
        sendBufferSize - socket send buffer size in bytes
      • SftpConfiguration

        public SftpConfiguration​(SftpConfiguration that)
        Creates new instance from existing instance.
        Parameters:
        that - an instance to copy
      • SftpConfiguration

        public SftpConfiguration​(SftpConfiguration that,
                                 java.util.Map options)
        Creates new instance from existing instance.
        Parameters:
        that - an instance to copy
        options - additional options
      • SftpConfiguration

        public SftpConfiguration()
        Creates new instance.
    • Method Detail

      • getStartupBanner

        public java.lang.String getStartupBanner()
        Gets startup banner.
        Returns:
        startup banner
      • setStartupBanner

        public void setStartupBanner​(java.lang.String value)
        Sets startup banner.
        Parameters:
        value - startup banner
      • getSoftwareVersion

        public java.lang.String getSoftwareVersion()
        Gets software version.
        Returns:
        software version
      • setSoftwareVersion

        public void setSoftwareVersion​(java.lang.String value)
        Sets software version.
        Parameters:
        value - software version
      • getAuthBanner

        public java.lang.String getAuthBanner()
        Gets authentication banner.
        Returns:
        authentication banner
      • setAuthBanner

        public void setAuthBanner​(java.lang.String value)
        Sets authentication banner.
        Parameters:
        value - authentication banner
      • getSupportedKexes

        public java.lang.String[] getSupportedKexes()
        Gets key exchange algorithms.
        Returns:
        supported key exchange algorithms
      • setSupportedKexes

        public void setSupportedKexes​(java.lang.String[] value)
        Sets key exchange algorithms.
        Parameters:
        value - supported key exchange algorithms
      • getSupportedKeys

        public java.lang.String[] getSupportedKeys()
        Gets key algorithms.
        Returns:
        supported key algorithms
      • setSupportedKeys

        public void setSupportedKeys​(java.lang.String[] value)
        Sets key algorithms.
        Parameters:
        value - supported key algorithms
      • getSupportedCiphers

        public java.lang.String[] getSupportedCiphers()
        Sets ciphers.
        Returns:
        supported cipher algorithms
      • setSupportedCiphers

        public void setSupportedCiphers​(java.lang.String[] value)
        Gets ciphers.
        Parameters:
        value - supported cipher algorithms
      • getSupportedMacs

        public java.lang.String[] getSupportedMacs()
        Gets MAC (message authentication) algorithms.
        Returns:
        supported MAC algorithms
      • setSupportedMacs

        public void setSupportedMacs​(java.lang.String[] value)
        Sets MAC (message authentication) algorithms.
        Parameters:
        value - supported MAC algorithms
      • getSupportedCompressions

        public java.lang.String[] getSupportedCompressions()
        Gets compression algorithms.
        Returns:
        supported compression algorithms
      • setSupportedCompressions

        public void setSupportedCompressions​(java.lang.String[] value)
        Sets compression algorithms.
        Parameters:
        value - supported compression algorithms
      • getConnectionTimeout

        public long getConnectionTimeout()
        Sets connection timeout in ms.
        Returns:
        connection timeout
      • setConnectionTimeout

        public void setConnectionTimeout​(long value)
        Sets connection timeout in ms.
        Parameters:
        value - connection timeout
      • getReceiveBufferSize

        public java.lang.Integer getReceiveBufferSize()
        Gets socket receive buffer size in bytes.
        Returns:
        receive buffer size
      • setReceiveBufferSize

        public void setReceiveBufferSize​(java.lang.Integer value)
        Sets receive buffer size in bytes.
        Parameters:
        value - receive buffer size
      • getSendBufferSize

        public java.lang.Integer getSendBufferSize()
        Gets socket send buffer size in bytes.
        Returns:
        send buffer size
      • setSendBufferSize

        public void setSendBufferSize​(java.lang.Integer value)
        Sets send buffer size in bytes.
        Parameters:
        value - send buffer size
      • isTcpNoDelayEnabled

        public boolean isTcpNoDelayEnabled()
      • setTcpNoDelayEnabled

        public void setTcpNoDelayEnabled​(boolean value)
      • isDisableRealPathExpandedLongName

        public boolean isDisableRealPathExpandedLongName()
      • setDisableRealPathExpandedLongName

        public void setDisableRealPathExpandedLongName​(boolean value)
      • getBacklog

        public int getBacklog()
      • setBacklog

        public void setBacklog​(int value)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object