@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 |
getCiphers() |
int |
getCompression() |
org.apache.camel.LoggingLevel |
getJschLoggingLevel() |
KeyPair |
getKeyPair() |
byte[] |
getKnownHosts() |
String |
getKnownHostsFile() |
String |
getKnownHostsUri() |
String |
getPreferredAuthentications() |
byte[] |
getPrivateKey() |
String |
getPrivateKeyFile() |
String |
getPrivateKeyFilePassphrase()
Deprecated.
|
String |
getPrivateKeyPassphrase() |
String |
getPrivateKeyUri() |
int |
getServerAliveCountMax() |
int |
getServerAliveInterval() |
String |
getStrictHostKeyChecking() |
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 |
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 |
setJschLoggingLevel(org.apache.camel.LoggingLevel jschLoggingLevel)
The logging level to use for JSCH activity logging.
|
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 |
setServerAliveCountMax(int serverAliveCountMax)
Allows you to set the serverAliveCountMax of the sftp session
|
void |
setServerAliveInterval(int serverAliveInterval)
Allows you to set the serverAliveInterval of the sftp session
|
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 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()
Apache Camel