328.3. Spring Boot Auto-Configuration


组件支持 30 选项,它们如下所列。

名称描述默认类型

camel.component.ssh.cert-resource

设置用于身份验证的证书的资源路径。将使用 ResourceHelperKeyPairProvider 来解析基于文件的证书,并取决于 keyType 设置。

 

字符串

camel.component.ssh.channel-type

设置要传递给 Channel 的频道类型,作为命令执行的一部分。默认为 exec。

 

字符串

camel.component.ssh.configuration.cert-resource

设置用于身份验证的证书的资源路径。将使用 ResourceHelperKeyPairProvider 来解析基于文件的证书,并取决于 keyType 设置。

 

字符串

camel.component.ssh.configuration.channel-type

设置要传递给 Channel 的频道类型,作为命令执行的一部分。默认为 exec。

exec

字符串

camel.component.ssh.configuration.fail-on-unknown-host

指定到未知主机的连接是否应该会失败。只有在设置了属性 knownHosts 时,才会检查这个值。

false

布尔值

camel.component.ssh.configuration.host

设置远程 SSH 服务器的主机名。

 

字符串

camel.component.ssh.configuration.key-pair-provider

设置在使用证书连接到远程 SSH 服务器时使用的 KeyPairProvider 参考。

 

KeyPairProvider

camel.component.ssh.configuration.key-type

设置用作身份验证一部分的 KeyPairProvider 的密钥类型。KeyPairProvider.loadKey (…​)将传递此值。默认为 ssh-rsa。

ssh-rsa

字符串

camel.component.ssh.configuration.known-hosts-resource

为 known_hosts 文件设置资源路径

 

字符串

camel.component.ssh.configuration.password

设置连接到远程 SSH 服务器时使用的密码。需要 keyPairProvider 设为 null。

 

字符串

camel.component.ssh.configuration.poll-command

设置要在每个轮询周期期间发送到远程 SSH 服务器的命令字符串。只适用于 camel-ssh 组件作为使用者,例如:(ssh://…​)可能需要以换行符结尾,且必须是编码的 %0A

 

字符串

camel.component.ssh.configuration.port

设置远程 SSH 服务器的端口号。

22

整数

camel.component.ssh.configuration.shell-prompt

在命令执行后读取响应时,将 shell 提示符设置为丢弃

 

字符串

camel.component.ssh.configuration.sleep-for-shell-prompt

设置休眠周期(以毫秒为单位),以从 shell 提示符读取响应。默认值为 100 毫秒。

100

Long

camel.component.ssh.configuration.timeout

将超时设置为毫秒,以等待建立远程 SSH 服务器连接。默认为 30000 毫秒。

30000

Long

camel.component.ssh.configuration.username

设置用于登录到远程 SSH 服务器的用户名。

 

字符串

camel.component.ssh.enabled

启用 ssh 组件

true

布尔值

camel.component.ssh.host

设置远程 SSH 服务器的主机名。

 

字符串

camel.component.ssh.key-pair-provider

设置在使用证书连接到远程 SSH 服务器时使用的 KeyPairProvider 参考。选项是一个 org.apache.sshd.common.keyprovider.KeyPairProvider 类型。

 

字符串

camel.component.ssh.key-type

设置用作身份验证一部分的 KeyPairProvider 的密钥类型。KeyPairProvider.loadKey (…​)将传递此值。默认为 ssh-rsa。

 

字符串

camel.component.ssh.password

设置连接到远程 SSH 服务器时使用的密码。需要 keyPairProvider 设为 null。

 

字符串

camel.component.ssh.poll-command

设置要在每个轮询周期期间发送到远程 SSH 服务器的命令字符串。只适用于 camel-ssh 组件作为消费者,例如:来自(ssh://…​)。您可能需要以换行符结尾,且必须是编码的 %0A 的 URL

 

字符串

camel.component.ssh.port

设置远程 SSH 服务器的端口号。

 

整数

camel.component.ssh.resolve-property-placeholders

启动时,组件是否应自行解析属性占位符。只有 String 类型的属性才能使用属性占位符。

true

布尔值

camel.component.ssh.shell-prompt

在命令执行后读取响应时,将 shell 提示符设置为丢弃

 

字符串

camel.component.ssh.sleep-for-shell-prompt

设置休眠周期(以毫秒为单位),以从 shell 提示符读取响应。默认值为 100 毫秒。

 

Long

camel.component.ssh.timeout

将超时设置为毫秒,以等待建立远程 SSH 服务器连接。默认为 30000 毫秒。

 

Long

camel.component.ssh.username

设置用于登录到远程 SSH 服务器的用户名。

 

字符串

camel.component.ssh.cert-filename

设置用于身份验证的证书的资源路径。

 

字符串

camel.component.ssh.configuration.cert-filename

@已弃用 2.11 版本,被 {@link #setCertResource (String)} 替换

 

字符串

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.