@UriParams public class SftpConfiguration extends RemoteFileConfiguration
RemoteFileConfiguration.PathSeparator
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SFTP_PORT |
Constructor and Description |
---|
SftpConfiguration() |
SftpConfiguration(URI uri) |
Modifier and Type | Method and Description |
---|---|
String |
getBindAddress() |
Integer |
getBulkRequests() |
String |
getChmod() |
String |
getChmodDirectory() |
String |
getCiphers() |
int |
getCompression() |
org.apache.camel.LoggingLevel |
getJschLoggingLevel() |
String |
getKeyExchangeProtocols() |
KeyPair |
getKeyPair() |
byte[] |
getKnownHosts() |
String |
getKnownHostsFile() |
String |
getKnownHostsUri() |
String |
getPreferredAuthentications() |
byte[] |
getPrivateKey() |
String |
getPrivateKeyFile() |
String |
getPrivateKeyFilePassphrase()
Deprecated.
|
String |
getPrivateKeyPassphrase() |
String |
getPrivateKeyUri() |
String |
getPublicKeyAcceptedAlgorithms() |
int |
getServerAliveCountMax() |
int |
getServerAliveInterval() |
String |
getServerHostKeys() |
String |
getStrictHostKeyChecking() |
boolean |
isExistDirCheckUsingLs() |
boolean |
isUseUserKnownHostsFile() |
void |
setBindAddress(String bindAddress)
Specifies the address of the local interface against which the connection should bind.
|
void |
setBulkRequests(Integer bulkRequests)
Specifies how many requests may be outstanding at any one time.
|
void |
setChmod(String chmod)
Allows you to set chmod on the stored file.
|
void |
setChmodDirectory(String chmodDirectory)
Allows you to set chmod during path creation.
|
void |
setCiphers(String ciphers)
Set a comma separated list of ciphers that will be used in order of preference.
|
void |
setCompression(int compression)
To use compression.
|
protected void |
setDefaultPort() |
void |
setExistDirCheckUsingLs(boolean existDirCheckUsingLs)
Whether to check for existing directory using LS command or CD.
|
void |
setJschLoggingLevel(org.apache.camel.LoggingLevel jschLoggingLevel)
The logging level to use for JSCH activity logging.
|
void |
setKeyExchangeProtocols(String keyExchangeProtocols)
Set a comma separated list of key exchange protocols that will be used in order of preference.
|
void |
setKeyPair(KeyPair keyPair)
Sets a key pair of the public and private key so to that the SFTP endpoint can do public/private key
verification.
|
void |
setKnownHosts(byte[] knownHosts)
Sets the known_hosts from the byte array, so that the SFTP endpoint can do host key verification.
|
void |
setKnownHostsFile(String knownHostsFile)
Sets the known_hosts file, so that the SFTP endpoint can do host key verification.
|
void |
setKnownHostsUri(String knownHostsUri)
Sets the known_hosts file (loaded from classpath by default), so that the SFTP endpoint can do host key
verification.
|
void |
setPreferredAuthentications(String pAuthentications)
Set the preferred authentications which SFTP endpoint will used.
|
void |
setPrivateKey(byte[] privateKey)
Set the private key as byte[] so that the SFTP endpoint can do private key verification.
|
void |
setPrivateKeyFile(String privateKeyFile)
Set the private key file so that the SFTP endpoint can do private key verification.
|
void |
setPrivateKeyFilePassphrase(String privateKeyFilePassphrase)
Deprecated.
|
void |
setPrivateKeyPassphrase(String privateKeyFilePassphrase)
Set the private key file passphrase so that the SFTP endpoint can do private key verification.
|
void |
setPrivateKeyUri(String privateKeyUri)
Set the private key file (loaded from classpath by default) so that the SFTP endpoint can do private key
verification.
|
void |
setPublicKeyAcceptedAlgorithms(String publicKeyAcceptedAlgorithms)
Set a comma separated list of public key accepted algorithms.
|
void |
setServerAliveCountMax(int serverAliveCountMax)
Sets the number of keep-alive messages which may be sent without receiving any messages back from the server.
|
void |
setServerAliveInterval(int serverAliveInterval)
Sets the interval (millis) to send a keep-alive message.
|
void |
setServerHostKeys(String serverHostKeys)
Set a comma separated list of algorithms supported for the server host key.
|
void |
setStrictHostKeyChecking(String strictHostKeyChecking)
Sets whether to use strict host key checking.
|
void |
setUseUserKnownHostsFile(boolean useUserKnownHostsFile)
If knownHostFile has not been explicit configured then use the host file from
System.getProperty(user.home)/.ssh/known_hosts
|
configure, getConnectTimeout, getDirectoryName, getHost, getPassword, getPort, getProtocol, getSeparator, getSiteCommand, getSoTimeout, getTimeout, getUsername, isBinary, isIgnoreFileNotFoundOrPermissionError, isPassiveMode, isSendNoop, isStepwise, isStreamDownload, isThrowExceptionOnConnectFailed, isUseList, needToNormalize, normalizePath, remoteServerInformation, setBinary, setConnectTimeout, setDirectoryName, setHost, setIgnoreFileNotFoundOrPermissionError, setPassiveMode, setPassword, setPort, setProtocol, setSendNoop, setSeparator, setSiteCommand, setSoTimeout, setStepwise, setStreamDownload, setThrowExceptionOnConnectFailed, setTimeout, setUseList, setUsername
public static final int DEFAULT_SFTP_PORT
public SftpConfiguration()
public SftpConfiguration(URI uri)
protected void setDefaultPort()
setDefaultPort
in class RemoteFileConfiguration
public String getKnownHostsFile()
public void setKnownHostsFile(String knownHostsFile)
public String getKnownHostsUri()
public boolean isUseUserKnownHostsFile()
public void setUseUserKnownHostsFile(boolean useUserKnownHostsFile)
public void setKnownHostsUri(String knownHostsUri)
public byte[] getKnownHosts()
public void setKnownHosts(byte[] knownHosts)
public String getPrivateKeyFile()
public void setPrivateKeyFile(String privateKeyFile)
public String getPrivateKeyUri()
public void setPrivateKeyUri(String privateKeyUri)
public byte[] getPrivateKey()
public void setPrivateKey(byte[] privateKey)
public String getPrivateKeyPassphrase()
public void setPrivateKeyPassphrase(String privateKeyFilePassphrase)
@Deprecated public String getPrivateKeyFilePassphrase()
@Deprecated public void setPrivateKeyFilePassphrase(String privateKeyFilePassphrase)
public KeyPair getKeyPair()
public void setKeyPair(KeyPair keyPair)
public String getStrictHostKeyChecking()
public void setStrictHostKeyChecking(String strictHostKeyChecking)
public void setServerAliveInterval(int serverAliveInterval)
public int getServerAliveInterval()
public void setServerAliveCountMax(int serverAliveCountMax)
public int getServerAliveCountMax()
public void setChmod(String chmod)
public String getChmod()
public void setChmodDirectory(String chmodDirectory)
public String getChmodDirectory()
public void setCiphers(String ciphers)
public String getCiphers()
public int getCompression()
public void setCompression(int compression)
public void setPreferredAuthentications(String pAuthentications)
public String getPreferredAuthentications()
public org.apache.camel.LoggingLevel getJschLoggingLevel()
public void setJschLoggingLevel(org.apache.camel.LoggingLevel jschLoggingLevel)
public void setBulkRequests(Integer bulkRequests)
public Integer getBulkRequests()
public void setBindAddress(String bindAddress)
public String getBindAddress()
public boolean isExistDirCheckUsingLs()
public void setExistDirCheckUsingLs(boolean existDirCheckUsingLs)
public String getKeyExchangeProtocols()
public void setKeyExchangeProtocols(String keyExchangeProtocols)
public String getServerHostKeys()
public void setServerHostKeys(String serverHostKeys)
public String getPublicKeyAcceptedAlgorithms()
public void setPublicKeyAcceptedAlgorithms(String publicKeyAcceptedAlgorithms)
Apache Camel