This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new ae141c6e42df CAMEL-23832: camel-jsch - improve the component and
option descriptions (#30951)
ae141c6e42df is described below
commit ae141c6e42df990b4b1208c48ca5f4734070ac28
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 27 15:06:38 2026 +0100
CAMEL-23832: camel-jsch - improve the component and option descriptions
(#30951)
New texts for the component description, the component option
verboseLogging and 12 endpoint options, checked
against the Camel code and JSch 2.28.8 (com.github.mwiede). The component
description said "to/from" for a
producer-only component, certUri said it loads from the classpath by
default (it loads from the file system), and
the texts did not say which certificate or key option takes precedence or
that a certificate needs a private key.
Documentation only, no behavior change. The component JSON, the catalog
copy, the doc page header and the DSL are
regenerated. camel-jsch is marked as done in
tasks/component-descriptions.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../org/apache/camel/catalog/components/scp.json | 28 +++---
.../apache/camel/catalog/docs/scp-component.adoc | 2 +-
.../org/apache/camel/component/scp/scp.json | 28 +++---
.../camel-jsch/src/main/docs/scp-component.adoc | 2 +-
.../apache/camel/component/scp/ScpComponent.java | 8 +-
.../camel/component/scp/ScpConfiguration.java | 112 +++++++++------------
.../apache/camel/component/scp/ScpEndpoint.java | 2 +-
.../component/ComponentsBuilderFactory.java | 2 +-
.../component/dsl/ScpComponentBuilderFactory.java | 11 +-
.../builder/endpoint/StaticEndpointBuilders.java | 4 +-
.../endpoint/dsl/ScpEndpointBuilderFactory.java | 112 +++++++++++++--------
tasks/component-descriptions.md | 2 +-
12 files changed, 164 insertions(+), 149 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/scp.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/scp.json
index ebab1e5e954c..fd9a98be1f82 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/scp.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/scp.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "scp",
"title": "SCP",
- "description": "Copy files to\/from remote hosts using the secure copy
protocol (SCP).",
+ "description": "Copy files to remote hosts using the secure copy protocol
(SCP).",
"deprecated": false,
"firstVersion": "2.10.0",
"label": "file",
@@ -25,7 +25,7 @@
},
"componentProperties": {
"lazyStartProducer": { "index": 0, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether the producer should be started lazy (on the first message). By
starting lazy you can use this to allow CamelContext and routes to startup in
situations where a producer may otherwise fail [...]
- "verboseLogging": { "index": 1, "kind": "property", "displayName":
"Verbose Logging", "group": "producer", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "JSCH is verbose logging
out of the box. Therefore we turn the logging down to DEBUG logging by default.
But setting this option to true turns on the verbose logging again." },
+ "verboseLogging": { "index": 1, "kind": "property", "displayName":
"Verbose Logging", "group": "producer", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "Whether to log the INFO
messages of JSch at INFO level. JSch logs much at INFO level, so by default the
component logs these messages at DEBUG level. The component passes the JSch log
messages, with the [JSCH] [...]
"autowiredEnabled": { "index": 2, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching t [...]
"healthCheckConsumerEnabled": { "index": 3, "kind": "property",
"displayName": "Health Check Consumer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all consumer based health checks
from this component" },
"healthCheckProducerEnabled": { "index": 4, "kind": "property",
"displayName": "Health Check Producer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all producer based health checks
from this component. Notice: Camel has by default disabled all producer based
health-checks. You can turn on producer [...]
@@ -38,7 +38,7 @@
"host": { "index": 0, "kind": "path", "displayName": "Host", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.scp.ScpConfiguration",
"configurationField": "configuration", "description": "Hostname of the FTP
server" },
"port": { "index": 1, "kind": "path", "displayName": "Port", "group":
"producer", "label": "", "required": false, "type": "integer", "javaType":
"int", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.scp.ScpConfiguration",
"configurationField": "configuration", "description": "Port of the FTP server"
},
"directoryName": { "index": 2, "kind": "path", "displayName": "Directory
Name", "group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "The starting directory" },
- "chmod": { "index": 3, "kind": "parameter", "displayName": "Chmod",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "664", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Allows you to set chmod on the stored file.
For example chmod=664." },
+ "chmod": { "index": 3, "kind": "parameter", "displayName": "Chmod",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "664", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "The permissions of the file that the producer
writes, as three octal digits, for example 644. Any other valu [...]
"disconnect": { "index": 4, "kind": "parameter", "displayName":
"Disconnect", "group": "common", "label": "common", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "Whether or not to
disconnect from remote FTP server right after use. Disconnect will only
disconnect the current connection to the FTP server. If you have a consumer
which you want to stop, then you need to stop th [...]
"checksumFileAlgorithm": { "index": 5, "kind": "parameter", "displayName":
"Checksum File Algorithm", "group": "producer", "label": "producer",
"required": false, "type": "enum", "javaType": "java.lang.String", "enum": [
"MD2", "MD5", "SHA_1", "SHA_224", "SHA_256", "SHA_384", "SHA_512",
"SHA_512_224", "SHA_512_256", "SHA3_224", "SHA3_256", "SHA3_384", "SHA3_512" ],
"deprecated": false, "autowired": false, "secret": false, "description": "If
provided, then Camel will calculate a check [...]
"fileName": { "index": 6, "kind": "parameter", "displayName": "File Name",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "supportSimpleExpression": true, "description": "Use
Expression such as File Language to dynamically set the filename. For
consumers, it's used as a filename filter: only a file with exactly this name
is consumed, as the name is not a pattern (use antI [...]
@@ -53,19 +53,19 @@
"connectTimeout": { "index": 15, "kind": "parameter", "displayName":
"Connect Timeout", "group": "advanced", "label": "advanced", "required": false,
"type": "duration", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "10000", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Sets the connect timeout for waiting for a
connection to be established Used by both FTPC [...]
"soTimeout": { "index": 16, "kind": "parameter", "displayName": "So
Timeout", "group": "advanced", "label": "advanced", "required": false, "type":
"duration", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "300000", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Sets the so timeout FTP and FTPS Is the
SocketOptions.SO_TIMEOUT value in millis. Recommended opti [...]
"timeout": { "index": 17, "kind": "parameter", "displayName": "Timeout",
"group": "advanced", "label": "advanced", "required": false, "type":
"duration", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "30000", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Sets the data timeout for waiting for reply
Used only by FTPClient" },
- "caSignatureAlgorithms": { "index": 18, "kind": "parameter",
"displayName": "Ca Signature Algorithms", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.scp.ScpConfiguration",
"configurationField": "configuration", "description": "Set a comma separated
list of CA signature algorithms accepted for host certificate veri [...]
- "certBytes": { "index": 19, "kind": "parameter", "displayName": "Cert
Bytes", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "byte[]", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Set the OpenSSH certificate as a byte array
for certificate-based authentication." },
- "certFile": { "index": 20, "kind": "parameter", "displayName": "Cert
File", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Set the OpenSSH certificate file path for
certificate-based authentication." },
- "certUri": { "index": 21, "kind": "parameter", "displayName": "Cert Uri",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "supportFileReference": true,
"configurationClass": "org.apache.camel.component.scp.ScpConfiguration",
"configurationField": "configuration", "description": "Set the OpenSSH
certificate (loaded from classpath by default) for [...]
- "knownHostsFile": { "index": 22, "kind": "parameter", "displayName":
"Known Hosts File", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret",
"supportFileReference": true, "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Sets the known_hosts file, so that the jsch
endpoin [...]
+ "caSignatureAlgorithms": { "index": 18, "kind": "parameter",
"displayName": "Ca Signature Algorithms", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.scp.ScpConfiguration",
"configurationField": "configuration", "description": "A comma-separated list
of the signature algorithms that are accepted for the CA signatur [...]
+ "certBytes": { "index": 19, "kind": "parameter", "displayName": "Cert
Bytes", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "byte[]", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "The OpenSSH user certificate as a byte array,
for certificate-based authentication. Only used together [...]
+ "certFile": { "index": 20, "kind": "parameter", "displayName": "Cert
File", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "The OpenSSH user certificate file for
certificate-based authentication, for example id_ed25519 [...]
+ "certUri": { "index": 21, "kind": "parameter", "displayName": "Cert Uri",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "supportFileReference": true,
"configurationClass": "org.apache.camel.component.scp.ScpConfiguration",
"configurationField": "configuration", "description": "The OpenSSH user
certificate for certificate-based authentication, [...]
+ "knownHostsFile": { "index": 22, "kind": "parameter", "displayName":
"Known Hosts File", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret",
"supportFileReference": true, "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "The known hosts file that JSch checks the key
of th [...]
"password": { "index": 23, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Password to use for login" },
- "preferredAuthentications": { "index": 24, "kind": "parameter",
"displayName": "Preferred Authentications", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": true,
"security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Set a comma separated list of authentications
that will be use [...]
- "privateKeyBytes": { "index": 25, "kind": "parameter", "displayName":
"Private Key Bytes", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "byte[]", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Set the private key bytes to that the endpoint
can do private key verification. This must [...]
- "privateKeyFile": { "index": 26, "kind": "parameter", "displayName":
"Private Key File", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Set the private key file to that the endpoint
can do private key verification. Yo [...]
- "privateKeyFilePassphrase": { "index": 27, "kind": "parameter",
"displayName": "Private Key File Passphrase", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": true,
"security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Set the private key file passphrase to that
the endpoint can [...]
+ "preferredAuthentications": { "index": 24, "kind": "parameter",
"displayName": "Preferred Authentications", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": true,
"security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "A comma-separated list of the SSH
authentication methods to tr [...]
+ "privateKeyBytes": { "index": 25, "kind": "parameter", "displayName":
"Private Key Bytes", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "byte[]", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "The private key as a byte array, for public
key authentication. Only used when privateKey [...]
+ "privateKeyFile": { "index": 26, "kind": "parameter", "displayName":
"Private Key File", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "The private key file for public key
authentication. A path on the file system, or [...]
+ "privateKeyFilePassphrase": { "index": 27, "kind": "parameter",
"displayName": "Private Key File Passphrase", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": true,
"security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "The passphrase of an encrypted private key of
privateKeyFile [...]
"strictHostKeyChecking": { "index": 28, "kind": "parameter",
"displayName": "Strict Host Key Checking", "group": "security", "label":
"security", "required": false, "type": "enum", "javaType": "java.lang.String",
"enum": [ "no", "yes" ], "deprecated": false, "autowired": false, "secret":
false, "security": "insecure:ssl", "defaultValue": "no", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Sets whether t [...]
"username": { "index": 29, "kind": "parameter", "displayName": "Username",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Username to use for login" },
- "useUserKnownHostsFile": { "index": 30, "kind": "parameter",
"displayName": "Use User Known Hosts File", "group": "security", "label":
"security", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.scp.ScpConfiguration",
"configurationField": "configuration", "description": "If knownHostFile has not
been explicit configured, then use the host fil [...]
- "ciphers": { "index": 31, "kind": "parameter", "displayName": "Ciphers",
"group": "security (advanced)", "label": "security,advanced", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Set a comma separated list of ciphers that
will be used in order of preference. Possible cipher na [...]
+ "useUserKnownHostsFile": { "index": 30, "kind": "parameter",
"displayName": "Use User Known Hosts File", "group": "security", "label":
"security", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.scp.ScpConfiguration",
"configurationField": "configuration", "description": "Whether to use the known
hosts file of the user, the .ssh\/known_hosts f [...]
+ "ciphers": { "index": 31, "kind": "parameter", "displayName": "Ciphers",
"group": "security (advanced)", "label": "security,advanced", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "A comma-separated list of the ciphers for the
SSH connection, in order of preference, for example [...]
}
}
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/scp-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/scp-component.adoc
index 513db7edcbb9..395bc1052914 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/scp-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/scp-component.adoc
@@ -2,7 +2,7 @@
:doctitle: SCP
:shortname: scp
:artifactid: camel-jsch
-:description: Copy files to/from remote hosts using the secure copy protocol
(SCP).
+:description: Copy files to remote hosts using the secure copy protocol (SCP).
:since: 2.10
:supportlevel: Stable
:tabs-sync-option:
diff --git
a/components/camel-jsch/src/generated/resources/META-INF/org/apache/camel/component/scp/scp.json
b/components/camel-jsch/src/generated/resources/META-INF/org/apache/camel/component/scp/scp.json
index ebab1e5e954c..fd9a98be1f82 100644
---
a/components/camel-jsch/src/generated/resources/META-INF/org/apache/camel/component/scp/scp.json
+++
b/components/camel-jsch/src/generated/resources/META-INF/org/apache/camel/component/scp/scp.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "scp",
"title": "SCP",
- "description": "Copy files to\/from remote hosts using the secure copy
protocol (SCP).",
+ "description": "Copy files to remote hosts using the secure copy protocol
(SCP).",
"deprecated": false,
"firstVersion": "2.10.0",
"label": "file",
@@ -25,7 +25,7 @@
},
"componentProperties": {
"lazyStartProducer": { "index": 0, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether the producer should be started lazy (on the first message). By
starting lazy you can use this to allow CamelContext and routes to startup in
situations where a producer may otherwise fail [...]
- "verboseLogging": { "index": 1, "kind": "property", "displayName":
"Verbose Logging", "group": "producer", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "JSCH is verbose logging
out of the box. Therefore we turn the logging down to DEBUG logging by default.
But setting this option to true turns on the verbose logging again." },
+ "verboseLogging": { "index": 1, "kind": "property", "displayName":
"Verbose Logging", "group": "producer", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "Whether to log the INFO
messages of JSch at INFO level. JSch logs much at INFO level, so by default the
component logs these messages at DEBUG level. The component passes the JSch log
messages, with the [JSCH] [...]
"autowiredEnabled": { "index": 2, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching t [...]
"healthCheckConsumerEnabled": { "index": 3, "kind": "property",
"displayName": "Health Check Consumer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all consumer based health checks
from this component" },
"healthCheckProducerEnabled": { "index": 4, "kind": "property",
"displayName": "Health Check Producer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all producer based health checks
from this component. Notice: Camel has by default disabled all producer based
health-checks. You can turn on producer [...]
@@ -38,7 +38,7 @@
"host": { "index": 0, "kind": "path", "displayName": "Host", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.scp.ScpConfiguration",
"configurationField": "configuration", "description": "Hostname of the FTP
server" },
"port": { "index": 1, "kind": "path", "displayName": "Port", "group":
"producer", "label": "", "required": false, "type": "integer", "javaType":
"int", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.scp.ScpConfiguration",
"configurationField": "configuration", "description": "Port of the FTP server"
},
"directoryName": { "index": 2, "kind": "path", "displayName": "Directory
Name", "group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "The starting directory" },
- "chmod": { "index": 3, "kind": "parameter", "displayName": "Chmod",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "664", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Allows you to set chmod on the stored file.
For example chmod=664." },
+ "chmod": { "index": 3, "kind": "parameter", "displayName": "Chmod",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "664", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "The permissions of the file that the producer
writes, as three octal digits, for example 644. Any other valu [...]
"disconnect": { "index": 4, "kind": "parameter", "displayName":
"Disconnect", "group": "common", "label": "common", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "Whether or not to
disconnect from remote FTP server right after use. Disconnect will only
disconnect the current connection to the FTP server. If you have a consumer
which you want to stop, then you need to stop th [...]
"checksumFileAlgorithm": { "index": 5, "kind": "parameter", "displayName":
"Checksum File Algorithm", "group": "producer", "label": "producer",
"required": false, "type": "enum", "javaType": "java.lang.String", "enum": [
"MD2", "MD5", "SHA_1", "SHA_224", "SHA_256", "SHA_384", "SHA_512",
"SHA_512_224", "SHA_512_256", "SHA3_224", "SHA3_256", "SHA3_384", "SHA3_512" ],
"deprecated": false, "autowired": false, "secret": false, "description": "If
provided, then Camel will calculate a check [...]
"fileName": { "index": 6, "kind": "parameter", "displayName": "File Name",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "supportSimpleExpression": true, "description": "Use
Expression such as File Language to dynamically set the filename. For
consumers, it's used as a filename filter: only a file with exactly this name
is consumed, as the name is not a pattern (use antI [...]
@@ -53,19 +53,19 @@
"connectTimeout": { "index": 15, "kind": "parameter", "displayName":
"Connect Timeout", "group": "advanced", "label": "advanced", "required": false,
"type": "duration", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "10000", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Sets the connect timeout for waiting for a
connection to be established Used by both FTPC [...]
"soTimeout": { "index": 16, "kind": "parameter", "displayName": "So
Timeout", "group": "advanced", "label": "advanced", "required": false, "type":
"duration", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "300000", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Sets the so timeout FTP and FTPS Is the
SocketOptions.SO_TIMEOUT value in millis. Recommended opti [...]
"timeout": { "index": 17, "kind": "parameter", "displayName": "Timeout",
"group": "advanced", "label": "advanced", "required": false, "type":
"duration", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "30000", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Sets the data timeout for waiting for reply
Used only by FTPClient" },
- "caSignatureAlgorithms": { "index": 18, "kind": "parameter",
"displayName": "Ca Signature Algorithms", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.scp.ScpConfiguration",
"configurationField": "configuration", "description": "Set a comma separated
list of CA signature algorithms accepted for host certificate veri [...]
- "certBytes": { "index": 19, "kind": "parameter", "displayName": "Cert
Bytes", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "byte[]", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Set the OpenSSH certificate as a byte array
for certificate-based authentication." },
- "certFile": { "index": 20, "kind": "parameter", "displayName": "Cert
File", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Set the OpenSSH certificate file path for
certificate-based authentication." },
- "certUri": { "index": 21, "kind": "parameter", "displayName": "Cert Uri",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "supportFileReference": true,
"configurationClass": "org.apache.camel.component.scp.ScpConfiguration",
"configurationField": "configuration", "description": "Set the OpenSSH
certificate (loaded from classpath by default) for [...]
- "knownHostsFile": { "index": 22, "kind": "parameter", "displayName":
"Known Hosts File", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret",
"supportFileReference": true, "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Sets the known_hosts file, so that the jsch
endpoin [...]
+ "caSignatureAlgorithms": { "index": 18, "kind": "parameter",
"displayName": "Ca Signature Algorithms", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.scp.ScpConfiguration",
"configurationField": "configuration", "description": "A comma-separated list
of the signature algorithms that are accepted for the CA signatur [...]
+ "certBytes": { "index": 19, "kind": "parameter", "displayName": "Cert
Bytes", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "byte[]", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "The OpenSSH user certificate as a byte array,
for certificate-based authentication. Only used together [...]
+ "certFile": { "index": 20, "kind": "parameter", "displayName": "Cert
File", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "The OpenSSH user certificate file for
certificate-based authentication, for example id_ed25519 [...]
+ "certUri": { "index": 21, "kind": "parameter", "displayName": "Cert Uri",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "supportFileReference": true,
"configurationClass": "org.apache.camel.component.scp.ScpConfiguration",
"configurationField": "configuration", "description": "The OpenSSH user
certificate for certificate-based authentication, [...]
+ "knownHostsFile": { "index": 22, "kind": "parameter", "displayName":
"Known Hosts File", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret",
"supportFileReference": true, "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "The known hosts file that JSch checks the key
of th [...]
"password": { "index": 23, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Password to use for login" },
- "preferredAuthentications": { "index": 24, "kind": "parameter",
"displayName": "Preferred Authentications", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": true,
"security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Set a comma separated list of authentications
that will be use [...]
- "privateKeyBytes": { "index": 25, "kind": "parameter", "displayName":
"Private Key Bytes", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "byte[]", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Set the private key bytes to that the endpoint
can do private key verification. This must [...]
- "privateKeyFile": { "index": 26, "kind": "parameter", "displayName":
"Private Key File", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Set the private key file to that the endpoint
can do private key verification. Yo [...]
- "privateKeyFilePassphrase": { "index": 27, "kind": "parameter",
"displayName": "Private Key File Passphrase", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": true,
"security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Set the private key file passphrase to that
the endpoint can [...]
+ "preferredAuthentications": { "index": 24, "kind": "parameter",
"displayName": "Preferred Authentications", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": true,
"security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "A comma-separated list of the SSH
authentication methods to tr [...]
+ "privateKeyBytes": { "index": 25, "kind": "parameter", "displayName":
"Private Key Bytes", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "byte[]", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "The private key as a byte array, for public
key authentication. Only used when privateKey [...]
+ "privateKeyFile": { "index": 26, "kind": "parameter", "displayName":
"Private Key File", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "The private key file for public key
authentication. A path on the file system, or [...]
+ "privateKeyFilePassphrase": { "index": 27, "kind": "parameter",
"displayName": "Private Key File Passphrase", "group": "security", "label":
"security", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": true,
"security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "The passphrase of an encrypted private key of
privateKeyFile [...]
"strictHostKeyChecking": { "index": 28, "kind": "parameter",
"displayName": "Strict Host Key Checking", "group": "security", "label":
"security", "required": false, "type": "enum", "javaType": "java.lang.String",
"enum": [ "no", "yes" ], "deprecated": false, "autowired": false, "secret":
false, "security": "insecure:ssl", "defaultValue": "no", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Sets whether t [...]
"username": { "index": 29, "kind": "parameter", "displayName": "Username",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Username to use for login" },
- "useUserKnownHostsFile": { "index": 30, "kind": "parameter",
"displayName": "Use User Known Hosts File", "group": "security", "label":
"security", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.scp.ScpConfiguration",
"configurationField": "configuration", "description": "If knownHostFile has not
been explicit configured, then use the host fil [...]
- "ciphers": { "index": 31, "kind": "parameter", "displayName": "Ciphers",
"group": "security (advanced)", "label": "security,advanced", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "Set a comma separated list of ciphers that
will be used in order of preference. Possible cipher na [...]
+ "useUserKnownHostsFile": { "index": 30, "kind": "parameter",
"displayName": "Use User Known Hosts File", "group": "security", "label":
"security", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass": "org.apache.camel.component.scp.ScpConfiguration",
"configurationField": "configuration", "description": "Whether to use the known
hosts file of the user, the .ssh\/known_hosts f [...]
+ "ciphers": { "index": 31, "kind": "parameter", "displayName": "Ciphers",
"group": "security (advanced)", "label": "security,advanced", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.scp.ScpConfiguration", "configurationField":
"configuration", "description": "A comma-separated list of the ciphers for the
SSH connection, in order of preference, for example [...]
}
}
diff --git a/components/camel-jsch/src/main/docs/scp-component.adoc
b/components/camel-jsch/src/main/docs/scp-component.adoc
index 513db7edcbb9..395bc1052914 100644
--- a/components/camel-jsch/src/main/docs/scp-component.adoc
+++ b/components/camel-jsch/src/main/docs/scp-component.adoc
@@ -2,7 +2,7 @@
:doctitle: SCP
:shortname: scp
:artifactid: camel-jsch
-:description: Copy files to/from remote hosts using the secure copy protocol
(SCP).
+:description: Copy files to remote hosts using the secure copy protocol (SCP).
:since: 2.10
:supportlevel: Stable
:tabs-sync-option:
diff --git
a/components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpComponent.java
b/components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpComponent.java
index 51b4b920f53f..2462af0ae046 100644
---
a/components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpComponent.java
+++
b/components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpComponent.java
@@ -34,7 +34,9 @@ import org.apache.camel.util.StringHelper;
@Component("scp")
public class ScpComponent extends RemoteFileComponent<ScpFile> {
- @Metadata
+ @Metadata(description = "Whether to log the INFO messages of JSch at INFO
level. JSch logs much at INFO level, so by"
+ + " default the component logs these messages at
DEBUG level. The component passes the JSch log"
+ + " messages, with the [JSCH] prefix, to its own
logger.")
private boolean verboseLogging;
public ScpComponent() {
@@ -66,10 +68,6 @@ public class ScpComponent extends
RemoteFileComponent<ScpFile> {
return verboseLogging;
}
- /**
- * JSCH is verbose logging out of the box. Therefore we turn the logging
down to DEBUG logging by default. But
- * setting this option to <tt>true</tt> turns on the verbose logging again.
- */
public void setVerboseLogging(boolean verboseLogging) {
this.verboseLogging = verboseLogging;
}
diff --git
a/components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpConfiguration.java
b/components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpConfiguration.java
index 3a1c3fd5d8ae..8430e443a32c 100644
---
a/components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpConfiguration.java
+++
b/components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpConfiguration.java
@@ -31,43 +31,78 @@ public class ScpConfiguration extends
RemoteFileConfiguration {
public static final int DEFAULT_SFTP_PORT = 22;
public static final String DEFAULT_MOD = "664";
- @UriParam(label = "security", defaultValue = "true")
+ @UriParam(label = "security", defaultValue = "true",
+ description = "Whether to use the known hosts file of the user,
the .ssh/known_hosts file in the home directory"
+ + " (the user.home system property, or the HOME
environment variable), when knownHostsFile is not"
+ + " set. If that file cannot be read, the producer
fails to connect. If false and knownHostsFile is"
+ + " not set, no host is known, and
strictHostKeyChecking decides whether the producer connects.")
private boolean useUserKnownHostsFile = true;
- @UriParam(label = "security", security = "secret")
+ @UriParam(label = "security", security = "secret",
+ description = "The known hosts file that JSch checks the key of
the remote host against when the producer"
+ + " connects, in the OpenSSH known_hosts format. A
path on the file system, or with the classpath:"
+ + " prefix a resource on the classpath. An
@cert-authority entry lets the producer accept an"
+ + " OpenSSH host certificate signed by that CA.
What happens with a host that is not in the file,"
+ + " or whose key changed, depends on
strictHostKeyChecking.")
@Metadata(supportFileReference = true)
private String knownHostsFile;
- @UriParam(label = "security", security = "secret")
+ @UriParam(label = "security", security = "secret",
+ description = "The private key file for public key
authentication. A path on the file system, or with the"
+ + " classpath: prefix a resource on the classpath.
The key must be in a format that JSch reads,"
+ + " such as OpenSSH, PEM or PuTTY. Takes
precedence over privateKeyBytes. Use"
+ + " privateKeyFilePassphrase for an encrypted
key.")
private String privateKeyFile;
- @UriParam(label = "security", security = "secret")
+ @UriParam(label = "security", security = "secret",
+ description = "The private key as a byte array, for public key
authentication. Only used when privateKeyFile is"
+ + " not set. Use privateKeyFilePassphrase for an
encrypted key.")
private byte[] privateKeyBytes;
- @UriParam(label = "security", security = "secret")
+ @UriParam(label = "security", security = "secret",
+ description = "The passphrase of an encrypted private key of
privateKeyFile or privateKeyBytes. Not needed for a"
+ + " key that is not encrypted.")
private String privateKeyFilePassphrase;
@UriParam(label = "security", security = "secret",
- description = "Set the OpenSSH certificate file path for
certificate-based authentication.")
+ description = "The OpenSSH user certificate file for
certificate-based authentication, for example"
+ + " id_ed25519-cert.pub. A path on the file
system, or with the classpath: prefix a resource on the"
+ + " classpath. Only used together with
privateKeyFile or privateKeyBytes, the private key of the"
+ + " certificate. Takes precedence over certUri and
certBytes.")
private String certFile;
@UriParam(label = "security", security = "secret",
- description = "Set the OpenSSH certificate (loaded from
classpath by default) for certificate-based authentication.")
+ description = "The OpenSSH user certificate for
certificate-based authentication, loaded the same way as"
+ + " certFile: a path on the file system, or with
the classpath: prefix a resource on the classpath."
+ + " Only used together with privateKeyFile or
privateKeyBytes, and when certFile is not set. Takes"
+ + " precedence over certBytes.")
@Metadata(supportFileReference = true)
private String certUri;
@UriParam(label = "security", security = "secret",
- description = "Set the OpenSSH certificate as a byte array for
certificate-based authentication.")
+ description = "The OpenSSH user certificate as a byte array, for
certificate-based authentication. Only used"
+ + " together with privateKeyFile or
privateKeyBytes, and when neither certFile nor certUri is set.")
private byte[] certBytes;
@UriParam(label = "security",
- description = "Set a comma separated list of CA signature
algorithms accepted for host certificate verification."
- + " If not specified the default list from JSch
will be used (matches OpenSSH 8.2+ defaults).")
+ description = "A comma-separated list of the signature
algorithms that are accepted for the CA signature of an"
+ + " OpenSSH host certificate, for example
ssh-ed25519,rsa-sha2-512. The CA keys are the"
+ + " @cert-authority entries of the known hosts
file. If not set, the JSch default list is used,"
+ + " which does not accept the SHA-1 based
ssh-rsa.")
private String caSignatureAlgorithms;
@UriParam(label = "security", enums = "no,yes", defaultValue = "no",
security = "insecure:ssl",
description = "Sets whether to use strict host key checking.
Setting this to 'no' (the default) disables"
+ " host key verification and makes the connection
vulnerable to man-in-the-middle attacks."
+ " Use 'yes' in production environments.")
private String strictHostKeyChecking = "no";
- @UriParam(defaultValue = DEFAULT_MOD)
+ @UriParam(defaultValue = DEFAULT_MOD,
+ description = "The permissions of the file that the producer
writes, as three octal digits, for example 644."
+ + " Any other value is replaced by 664. The
producer sends it in the scp protocol line of the file,"
+ + " and the remote scp uses it when it creates the
file. The directories that the producer creates"
+ + " for a file name with a path get 775.")
private String chmod = DEFAULT_MOD;
- // comma separated list of ciphers.
- // null means default jsch list will be used
- @UriParam(label = "security,advanced")
+ @UriParam(label = "security,advanced",
+ description = "A comma-separated list of the ciphers for the SSH
connection, in order of preference, for example"
+ + " aes128-ctr,aes256-ctr. The cipher names are
those of JSch. If not set, the JSch default list is"
+ + " used.")
private String ciphers;
- @UriParam(label = "security", security = "secret")
+ @UriParam(label = "security", security = "secret",
+ description = "A comma-separated list of the SSH authentication
methods to try, in order of preference, for"
+ + " example publickey,password. JSch supports
gssapi-with-mic, publickey, keyboard-interactive and"
+ + " password. If not set, the JSch default
gssapi-with-mic,publickey,keyboard-interactive,password"
+ + " is used.")
private String preferredAuthentications;
public ScpConfiguration() {
@@ -87,10 +122,6 @@ public class ScpConfiguration extends
RemoteFileConfiguration {
return 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.
- */
public void setKnownHostsFile(String knownHostsFile) {
this.knownHostsFile = knownHostsFile;
}
@@ -99,10 +130,6 @@ public class ScpConfiguration extends
RemoteFileConfiguration {
return useUserKnownHostsFile;
}
- /**
- * If knownHostFile has not been explicit configured, then use the host
file from System.getProperty("user.home") +
- * "/.ssh/known_hosts"
- */
public void setUseUserKnownHostsFile(boolean useUserKnownHostsFile) {
this.useUserKnownHostsFile = useUserKnownHostsFile;
}
@@ -111,10 +138,6 @@ public class ScpConfiguration extends
RemoteFileConfiguration {
return 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.
- */
public void setPrivateKeyFile(String privateKeyFile) {
this.privateKeyFile = privateKeyFile;
}
@@ -123,10 +146,6 @@ public class ScpConfiguration extends
RemoteFileConfiguration {
return 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.
- */
public void setPrivateKeyBytes(byte[] privateKeyBytes) {
this.privateKeyBytes = privateKeyBytes;
}
@@ -135,9 +154,6 @@ public class ScpConfiguration extends
RemoteFileConfiguration {
return privateKeyFilePassphrase;
}
- /**
- * Set the private key file passphrase to that the endpoint can do private
key verification.
- */
public void setPrivateKeyFilePassphrase(String privateKeyFilePassphrase) {
this.privateKeyFilePassphrase = privateKeyFilePassphrase;
}
@@ -146,9 +162,6 @@ public class ScpConfiguration extends
RemoteFileConfiguration {
return certFile;
}
- /**
- * Set the OpenSSH certificate file path for certificate-based
authentication.
- */
public void setCertFile(String certFile) {
this.certFile = certFile;
}
@@ -157,9 +170,6 @@ public class ScpConfiguration extends
RemoteFileConfiguration {
return certUri;
}
- /**
- * Set the OpenSSH certificate (loaded from classpath by default) for
certificate-based authentication.
- */
public void setCertUri(String certUri) {
this.certUri = certUri;
}
@@ -168,9 +178,6 @@ public class ScpConfiguration extends
RemoteFileConfiguration {
return certBytes;
}
- /**
- * Set the OpenSSH certificate as a byte array for certificate-based
authentication.
- */
public void setCertBytes(byte[] certBytes) {
this.certBytes = certBytes;
}
@@ -179,10 +186,6 @@ public class ScpConfiguration extends
RemoteFileConfiguration {
return caSignatureAlgorithms;
}
- /**
- * Set a comma separated list of CA signature algorithms accepted for host
certificate verification. If not
- * specified the default list from JSch will be used (matches OpenSSH 8.2+
defaults).
- */
public void setCaSignatureAlgorithms(String caSignatureAlgorithms) {
this.caSignatureAlgorithms = caSignatureAlgorithms;
}
@@ -198,9 +201,6 @@ public class ScpConfiguration extends
RemoteFileConfiguration {
this.strictHostKeyChecking = strictHostKeyChecking;
}
- /**
- * Allows you to set chmod on the stored file. For example chmod=664.
- */
public void setChmod(String chmod) {
if (chmod.length() == 3) {
for (byte c : chmod.getBytes()) {
@@ -220,12 +220,6 @@ public class ScpConfiguration extends
RemoteFileConfiguration {
return chmod;
}
- /**
- * 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.
- */
public void setCiphers(String ciphers) {
this.ciphers = ciphers;
}
@@ -234,12 +228,6 @@ public class ScpConfiguration extends
RemoteFileConfiguration {
return ciphers;
}
- /**
- * 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.
- */
public void setPreferredAuthentications(final String
preferredAuthentications) {
this.preferredAuthentications = preferredAuthentications;
}
diff --git
a/components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpEndpoint.java
b/components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpEndpoint.java
index 4f888a5a7ae8..18aa2470fca7 100644
---
a/components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpEndpoint.java
+++
b/components/camel-jsch/src/main/java/org/apache/camel/component/scp/ScpEndpoint.java
@@ -32,7 +32,7 @@ import org.apache.camel.spi.UriEndpoint;
import org.apache.camel.spi.UriParam;
/**
- * Copy files to/from remote hosts using the secure copy protocol (SCP).
+ * Copy files to remote hosts using the secure copy protocol (SCP).
*/
@UriEndpoint(firstVersion = "2.10.0", scheme = "scp", extendsScheme = "ftp",
title = "SCP",
syntax = "scp:host:port/directoryName", producerOnly = true,
category = { Category.FILE })
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index d02bd475cf62..77c0b4c436ca 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -4632,7 +4632,7 @@ public interface ComponentsBuilderFactory {
}
/**
* SCP (camel-jsch)
- * Copy files to/from remote hosts using the secure copy protocol (SCP).
+ * Copy files to remote hosts using the secure copy protocol (SCP).
*
* Category: file
* Since: 2.10
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ScpComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ScpComponentBuilderFactory.java
index 8a545b0d8b14..923c657f9710 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ScpComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ScpComponentBuilderFactory.java
@@ -24,7 +24,7 @@ import org.apache.camel.builder.component.ComponentBuilder;
import org.apache.camel.component.scp.ScpComponent;
/**
- * Copy files to/from remote hosts using the secure copy protocol (SCP).
+ * Copy files to remote hosts using the secure copy protocol (SCP).
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -33,7 +33,7 @@ public interface ScpComponentBuilderFactory {
/**
* SCP (camel-jsch)
- * Copy files to/from remote hosts using the secure copy protocol (SCP).
+ * Copy files to remote hosts using the secure copy protocol (SCP).
*
* Category: file
* Since: 2.10
@@ -77,9 +77,10 @@ public interface ScpComponentBuilderFactory {
/**
- * JSCH is verbose logging out of the box. Therefore we turn the
logging
- * down to DEBUG logging by default. But setting this option to true
- * turns on the verbose logging again.
+ * Whether to log the INFO messages of JSch at INFO level. JSch logs
+ * much at INFO level, so by default the component logs these messages
+ * at DEBUG level. The component passes the JSch log messages, with the
+ * [JSCH] prefix, to its own logger.
*
* The option is a: <code>boolean</code> type.
*
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index a9f9da95135b..4937891175c1 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -15670,7 +15670,7 @@ public class StaticEndpointBuilders {
}
/**
* SCP (camel-jsch)
- * Copy files to/from remote hosts using the secure copy protocol (SCP).
+ * Copy files to remote hosts using the secure copy protocol (SCP).
*
* Category: file
* Since: 2.10
@@ -15695,7 +15695,7 @@ public class StaticEndpointBuilders {
}
/**
* SCP (camel-jsch)
- * Copy files to/from remote hosts using the secure copy protocol (SCP).
+ * Copy files to remote hosts using the secure copy protocol (SCP).
*
* Category: file
* Since: 2.10
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ScpEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ScpEndpointBuilderFactory.java
index 317d47e3e4a2..0fc660083be3 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ScpEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ScpEndpointBuilderFactory.java
@@ -27,7 +27,7 @@ import org.apache.camel.builder.EndpointProducerBuilder;
import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
/**
- * Copy files to/from remote hosts using the secure copy protocol (SCP).
+ * Copy files to remote hosts using the secure copy protocol (SCP).
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -45,7 +45,11 @@ public interface ScpEndpointBuilderFactory {
}
/**
- * Allows you to set chmod on the stored file. For example chmod=664.
+ * The permissions of the file that the producer writes, as three octal
+ * digits, for example 644. Any other value is replaced by 664. The
+ * producer sends it in the scp protocol line of the file, and the
+ * remote scp uses it when it creates the file. The directories that
the
+ * producer creates for a file name with a path get 775.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -263,9 +267,11 @@ public interface ScpEndpointBuilderFactory {
return this;
}
/**
- * Set a comma separated list of CA signature algorithms accepted for
- * host certificate verification. If not specified the default list
from
- * JSch will be used (matches OpenSSH 8.2+ defaults).
+ * A comma-separated list of the signature algorithms that are accepted
+ * for the CA signature of an OpenSSH host certificate, for example
+ * ssh-ed25519,rsa-sha2-512. The CA keys are the cert-authority entries
+ * of the known hosts file. If not set, the JSch default list is used,
+ * which does not accept the SHA-1 based ssh-rsa.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -279,8 +285,9 @@ public interface ScpEndpointBuilderFactory {
return this;
}
/**
- * Set the OpenSSH certificate as a byte array for certificate-based
- * authentication.
+ * The OpenSSH user certificate as a byte array, for certificate-based
+ * authentication. Only used together with privateKeyFile or
+ * privateKeyBytes, and when neither certFile nor certUri is set.
*
* The option is a: <code>byte[]</code> type.
*
@@ -294,8 +301,9 @@ public interface ScpEndpointBuilderFactory {
return this;
}
/**
- * Set the OpenSSH certificate as a byte array for certificate-based
- * authentication.
+ * The OpenSSH user certificate as a byte array, for certificate-based
+ * authentication. Only used together with privateKeyFile or
+ * privateKeyBytes, and when neither certFile nor certUri is set.
*
* The option will be converted to a <code>byte[]</code> type.
*
@@ -309,8 +317,12 @@ public interface ScpEndpointBuilderFactory {
return this;
}
/**
- * Set the OpenSSH certificate file path for certificate-based
- * authentication.
+ * The OpenSSH user certificate file for certificate-based
+ * authentication, for example id_ed25519-cert.pub. A path on the file
+ * system, or with the classpath: prefix a resource on the classpath.
+ * Only used together with privateKeyFile or privateKeyBytes, the
+ * private key of the certificate. Takes precedence over certUri and
+ * certBytes.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -324,8 +336,11 @@ public interface ScpEndpointBuilderFactory {
return this;
}
/**
- * Set the OpenSSH certificate (loaded from classpath by default) for
- * certificate-based authentication.
+ * The OpenSSH user certificate for certificate-based authentication,
+ * loaded the same way as certFile: a path on the file system, or with
+ * the classpath: prefix a resource on the classpath. Only used
together
+ * with privateKeyFile or privateKeyBytes, and when certFile is not
set.
+ * Takes precedence over certBytes.
*
* This option can also be loaded from an existing file, by prefixing
* with file: or classpath: followed by the location of the file.
@@ -342,9 +357,13 @@ public interface ScpEndpointBuilderFactory {
return this;
}
/**
- * 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.
+ * The known hosts file that JSch checks the key of the remote host
+ * against when the producer connects, in the OpenSSH known_hosts
+ * format. A path on the file system, or with the classpath: prefix a
+ * resource on the classpath. An cert-authority entry lets the producer
+ * accept an OpenSSH host certificate signed by that CA. What happens
+ * with a host that is not in the file, or whose key changed, depends
on
+ * strictHostKeyChecking.
*
* This option can also be loaded from an existing file, by prefixing
* with file: or classpath: followed by the location of the file.
@@ -375,11 +394,11 @@ public interface ScpEndpointBuilderFactory {
return this;
}
/**
- * 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.
+ * A comma-separated list of the SSH authentication methods to try, in
+ * order of preference, for example publickey,password. JSch supports
+ * gssapi-with-mic, publickey, keyboard-interactive and password. If
not
+ * set, the JSch default
+ * gssapi-with-mic,publickey,keyboard-interactive,password is used.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -393,9 +412,9 @@ public interface ScpEndpointBuilderFactory {
return this;
}
/**
- * 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.
+ * The private key as a byte array, for public key authentication. Only
+ * used when privateKeyFile is not set. Use privateKeyFilePassphrase
for
+ * an encrypted key.
*
* The option is a: <code>byte[]</code> type.
*
@@ -409,9 +428,9 @@ public interface ScpEndpointBuilderFactory {
return this;
}
/**
- * 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.
+ * The private key as a byte array, for public key authentication. Only
+ * used when privateKeyFile is not set. Use privateKeyFilePassphrase
for
+ * an encrypted key.
*
* The option will be converted to a <code>byte[]</code> type.
*
@@ -425,9 +444,11 @@ public interface ScpEndpointBuilderFactory {
return this;
}
/**
- * 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.
+ * The private key file for public key authentication. A path on the
+ * file system, or with the classpath: prefix a resource on the
+ * classpath. The key must be in a format that JSch reads, such as
+ * OpenSSH, PEM or PuTTY. Takes precedence over privateKeyBytes. Use
+ * privateKeyFilePassphrase for an encrypted key.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -441,8 +462,8 @@ public interface ScpEndpointBuilderFactory {
return this;
}
/**
- * Set the private key file passphrase to that the endpoint can do
- * private key verification.
+ * The passphrase of an encrypted private key of privateKeyFile or
+ * privateKeyBytes. Not needed for a key that is not encrypted.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -488,8 +509,12 @@ public interface ScpEndpointBuilderFactory {
return this;
}
/**
- * If knownHostFile has not been explicit configured, then use the host
- * file from System.getProperty(user.home) + /.ssh/known_hosts.
+ * Whether to use the known hosts file of the user, the
.ssh/known_hosts
+ * file in the home directory (the user.home system property, or the
+ * HOME environment variable), when knownHostsFile is not set. If that
+ * file cannot be read, the producer fails to connect. If false and
+ * knownHostsFile is not set, no host is known, and
+ * strictHostKeyChecking decides whether the producer connects.
*
* The option is a: <code>boolean</code> type.
*
@@ -504,8 +529,12 @@ public interface ScpEndpointBuilderFactory {
return this;
}
/**
- * If knownHostFile has not been explicit configured, then use the host
- * file from System.getProperty(user.home) + /.ssh/known_hosts.
+ * Whether to use the known hosts file of the user, the
.ssh/known_hosts
+ * file in the home directory (the user.home system property, or the
+ * HOME environment variable), when knownHostsFile is not set. If that
+ * file cannot be read, the producer fails to connect. If false and
+ * knownHostsFile is not set, no host is known, and
+ * strictHostKeyChecking decides whether the producer connects.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -818,10 +847,9 @@ public interface ScpEndpointBuilderFactory {
return this;
}
/**
- * 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.
+ * A comma-separated list of the ciphers for the SSH connection, in
+ * order of preference, for example aes128-ctr,aes256-ctr. The cipher
+ * names are those of JSch. If not set, the JSch default list is used.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -839,7 +867,7 @@ public interface ScpEndpointBuilderFactory {
public interface ScpBuilders {
/**
* SCP (camel-jsch)
- * Copy files to/from remote hosts using the secure copy protocol
(SCP).
+ * Copy files to remote hosts using the secure copy protocol (SCP).
*
* Category: file
* Since: 2.10
@@ -864,7 +892,7 @@ public interface ScpEndpointBuilderFactory {
}
/**
* SCP (camel-jsch)
- * Copy files to/from remote hosts using the secure copy protocol
(SCP).
+ * Copy files to remote hosts using the secure copy protocol (SCP).
*
* Category: file
* Since: 2.10
diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md
index 072ce3ed3370..4d8237df5d4d 100644
--- a/tasks/component-descriptions.md
+++ b/tasks/component-descriptions.md
@@ -238,7 +238,7 @@ or removes its row.
| camel-jolt | jolt | |
| camel-jooq | jooq | yes |
| camel-jpa | jpa | |
-| camel-jsch | scp | |
+| camel-jsch | scp | yes |
| camel-jslt | jslt | |
| camel-json-validator | json-validator | |
| camel-jsonata | jsonata | yes |