public class SftpConfiguration extends TransportServiceConfiguration
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AUTH_BANNER
SFTP authentication banner flag.
|
static java.lang.String |
CONNECTION_TIMEOUT
SFTP connection timeout flag.
|
static java.lang.String |
SOFTWARE_VERSION
SFTP software version flag.
|
static java.lang.String |
STARTUP_BANNER
SFTP startup banner flag.
|
static java.lang.String |
SUPPORTED_CIPHERS
SFTP cipher algorithms sequence flag.
|
static java.lang.String |
SUPPORTED_COMPRESSIONS
SFTP compression algorithms sequence flag.
|
static java.lang.String |
SUPPORTED_KEXES
SFTP key exchange algorithms sequence flag.
|
static java.lang.String |
SUPPORTED_MACS
SFTP MAC algorithms sequence flag.
|
| Constructor and Description |
|---|
SftpConfiguration()
Creates new instance.
|
SftpConfiguration(SftpConfiguration that)
Creates new instance from existing instance.
|
SftpConfiguration(SftpConfiguration that,
java.util.Map options)
Creates new instance from existing instance.
|
SftpConfiguration(java.lang.String startupBanner,
java.lang.String softwareVersion,
java.lang.String authBanner,
java.lang.String[] supportedKexes,
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)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Configuration |
copy() |
java.lang.String |
getAuthBanner()
Gets authentication banner.
|
long |
getConnectionTimeout()
Sets connection timeout in ms.
|
java.lang.Integer |
getReceiveBufferSize()
Gets socket receive buffer size in bytes.
|
java.lang.Integer |
getSendBufferSize()
Gets socket send buffer size in bytes.
|
java.lang.String |
getSoftwareVersion()
Gets software version.
|
java.lang.String |
getStartupBanner()
Gets startup banner.
|
java.lang.String[] |
getSupportedCiphers()
Sets ciphers.
|
java.lang.String[] |
getSupportedCompressions()
Gets compression algorithms.
|
java.lang.String[] |
getSupportedKexes()
Gets key exchange algorithms.
|
java.lang.String[] |
getSupportedMacs()
Gets MAC (message authentication) algorithms.
|
boolean |
isDisableRealPathExpandedLongName() |
boolean |
isTcpNoDelayEnabled() |
void |
setAuthBanner(java.lang.String value)
Sets authentication banner.
|
void |
setConnectionTimeout(long value)
Sets connection timeout in ms.
|
void |
setDisableRealPathExpandedLongName(boolean value) |
void |
setReceiveBufferSize(java.lang.Integer value)
Sets receive buffer size in bytes.
|
void |
setSendBufferSize(java.lang.Integer value)
Sets send buffer size in bytes.
|
void |
setSoftwareVersion(java.lang.String value)
Sets software version.
|
void |
setStartupBanner(java.lang.String value)
Sets startup banner.
|
void |
setSupportedCiphers(java.lang.String[] value)
Gets ciphers.
|
void |
setSupportedCompressions(java.lang.String[] value)
Sets compression algorithms.
|
void |
setSupportedKexes(java.lang.String[] value)
Sets key exchange algorithms.
|
void |
setSupportedMacs(java.lang.String[] value)
Sets MAC (message authentication) algorithms.
|
void |
setTcpNoDelayEnabled(boolean value) |
java.lang.String |
toString() |
getVersion, setVersionpublic static final java.lang.String STARTUP_BANNER
public static final java.lang.String SOFTWARE_VERSION
public static final java.lang.String AUTH_BANNER
public static final java.lang.String SUPPORTED_KEXES
public static final java.lang.String SUPPORTED_CIPHERS
public static final java.lang.String SUPPORTED_MACS
public static final java.lang.String SUPPORTED_COMPRESSIONS
public static final java.lang.String CONNECTION_TIMEOUT
public SftpConfiguration(java.lang.String startupBanner,
java.lang.String softwareVersion,
java.lang.String authBanner,
java.lang.String[] supportedKexes,
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)
startupBanner - startup bannersoftwareVersion - software versionauthBanner - authentication bannersupportedKexes - supported key exchange algorithmssupportedCiphers - supported cipher algorithmssupportedMacs - supported MAC algorithmssupportedCompressions - supported compression algorithmsconnectionTimeout - connection timeout in msreceiveBufferSize - socket receive buffer size in bytessendBufferSize - socket send buffer size in bytespublic SftpConfiguration(SftpConfiguration that)
that - an instance to copypublic SftpConfiguration(SftpConfiguration that, java.util.Map options)
that - an instance to copyoptions - additional optionspublic SftpConfiguration()
public java.lang.String getStartupBanner()
public void setStartupBanner(java.lang.String value)
value - startup bannerpublic java.lang.String getSoftwareVersion()
public void setSoftwareVersion(java.lang.String value)
value - software versionpublic java.lang.String getAuthBanner()
public void setAuthBanner(java.lang.String value)
value - authentication bannerpublic java.lang.String[] getSupportedKexes()
public void setSupportedKexes(java.lang.String[] value)
value - supported key exchange algorithmspublic java.lang.String[] getSupportedCiphers()
public void setSupportedCiphers(java.lang.String[] value)
value - supported cipher algorithmspublic java.lang.String[] getSupportedMacs()
public void setSupportedMacs(java.lang.String[] value)
value - supported MAC algorithmspublic java.lang.String[] getSupportedCompressions()
public void setSupportedCompressions(java.lang.String[] value)
value - supported compression algorithmspublic long getConnectionTimeout()
public void setConnectionTimeout(long value)
value - connection timeoutpublic java.lang.Integer getReceiveBufferSize()
public void setReceiveBufferSize(java.lang.Integer value)
value - receive buffer sizepublic java.lang.Integer getSendBufferSize()
public void setSendBufferSize(java.lang.Integer value)
value - send buffer sizepublic boolean isTcpNoDelayEnabled()
public void setTcpNoDelayEnabled(boolean value)
public boolean isDisableRealPathExpandedLongName()
public void setDisableRealPathExpandedLongName(boolean value)
public Configuration copy()
copy in class Configurationpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © JSCAPE LLC. 1999-2020. All Rights Reserved