Package org.apache.camel.component.scp
Class ScpConfiguration
- java.lang.Object
-
- org.apache.camel.component.file.GenericFileConfiguration
-
- org.apache.camel.component.file.remote.RemoteFileConfiguration
-
- org.apache.camel.component.scp.ScpConfiguration
-
@UriParams public class ScpConfiguration extends org.apache.camel.component.file.remote.RemoteFileConfigurationSCP configuration
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_MODstatic intDEFAULT_SFTP_PORT
-
Constructor Summary
Constructors Constructor Description ScpConfiguration()ScpConfiguration(URI uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetChmod()StringgetCiphers()StringgetKnownHostsFile()StringgetPreferredAuthentications()byte[]getPrivateKeyBytes()StringgetPrivateKeyFile()StringgetPrivateKeyFilePassphrase()StringgetStrictHostKeyChecking()booleanisUseUserKnownHostsFile()voidsetChmod(String chmod)Allows you to set chmod on the stored file.voidsetCiphers(String ciphers)Set a comma separated list of ciphers that will be used in order of preference.protected voidsetDefaultPort()voidsetKnownHostsFile(String knownHostsFile)Sets the known_hosts file, so that the jsch endpoint can do host key verification.voidsetPreferredAuthentications(String preferredAuthentications)Set a comma separated list of authentications that will be used in order of preference.voidsetPrivateKeyBytes(byte[] privateKeyBytes)Set the private key bytes to that the endpoint can do private key verification.voidsetPrivateKeyFile(String privateKeyFile)Set the private key file to that the endpoint can do private key verification.voidsetPrivateKeyFilePassphrase(String privateKeyFilePassphrase)Set the private key file passphrase to that the endpoint can do private key verification.voidsetStrictHostKeyChecking(String strictHostKeyChecking)Sets whether to use strict host key checking.voidsetUseUserKnownHostsFile(boolean useUserKnownHostsFile)If knownHostFile has not been explicit configured, then use the host file from System.getProperty("user.home") + "/.ssh/known_hosts"-
Methods inherited from class org.apache.camel.component.file.remote.RemoteFileConfiguration
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
-
-
-
-
Field Detail
-
DEFAULT_SFTP_PORT
public static final int DEFAULT_SFTP_PORT
- See Also:
- Constant Field Values
-
DEFAULT_MOD
public static final String DEFAULT_MOD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ScpConfiguration
public ScpConfiguration()
-
ScpConfiguration
public ScpConfiguration(URI uri)
-
-
Method Detail
-
setDefaultPort
protected void setDefaultPort()
- Specified by:
setDefaultPortin classorg.apache.camel.component.file.remote.RemoteFileConfiguration
-
getKnownHostsFile
public String getKnownHostsFile()
-
setKnownHostsFile
public void setKnownHostsFile(String knownHostsFile)
Sets the known_hosts file, so that the jsch endpoint can do host key verification. You can prefix with classpath: to load the file from classpath instead of file system.
-
isUseUserKnownHostsFile
public boolean isUseUserKnownHostsFile()
-
setUseUserKnownHostsFile
public void setUseUserKnownHostsFile(boolean useUserKnownHostsFile)
If knownHostFile has not been explicit configured, then use the host file from System.getProperty("user.home") + "/.ssh/known_hosts"
-
getPrivateKeyFile
public String getPrivateKeyFile()
-
setPrivateKeyFile
public void setPrivateKeyFile(String privateKeyFile)
Set the private key file to that the endpoint can do private key verification. You can prefix with classpath: to load the file from classpath instead of file system.
-
getPrivateKeyBytes
public byte[] getPrivateKeyBytes()
-
setPrivateKeyBytes
public void setPrivateKeyBytes(byte[] privateKeyBytes)
Set the private key bytes to that the endpoint can do private key verification. This must be used only if privateKeyFile wasn't set. Otherwise the file will have the priority.
-
getPrivateKeyFilePassphrase
public String getPrivateKeyFilePassphrase()
-
setPrivateKeyFilePassphrase
public void setPrivateKeyFilePassphrase(String privateKeyFilePassphrase)
Set the private key file passphrase to that the endpoint can do private key verification.
-
getStrictHostKeyChecking
public String getStrictHostKeyChecking()
-
setStrictHostKeyChecking
public void setStrictHostKeyChecking(String strictHostKeyChecking)
Sets whether to use strict host key checking. Possible values are: no, yes
-
setChmod
public void setChmod(String chmod)
Allows you to set chmod on the stored file. For example chmod=664.
-
getChmod
public String getChmod()
-
setCiphers
public void setCiphers(String ciphers)
Set a comma separated list of ciphers that will be used in order of preference. Possible cipher names are defined by JCraft JSCH. Some examples include: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc. If not specified the default list from JSCH will be used.
-
getCiphers
public String getCiphers()
-
setPreferredAuthentications
public void setPreferredAuthentications(String preferredAuthentications)
Set a comma separated list of authentications that will be used in order of preference. Possible authentication methods are defined by JCraft JSCH. Some examples include: gssapi-with-mic,publickey,keyboard-interactive,password If not specified the JSCH and/or system defaults will be used.
-
getPreferredAuthentications
public String getPreferredAuthentications()
-
-