73.4. Spring Boot Auto-Configuration


组件支持 33 选项,如下所示。

Expand
名称描述默认类型

camel.component.crypto.configuration.algorithm

设置用于 signer 的 Algorithm 的 JCE 名称。

SHA1WithDSA

字符串

camel.component.crypto.configuration.alias

设置用于查询 KeyStore 的密钥和链接 java.security.cert.Certificate Certificates 的别名,以用于签名和验证交换。这个值可以在运行时通过消息标题 org.apache.camel.component.crypto.DigitalSignatureConstants #KEYSTORE_ALIAS

 

字符串

camel.component.crypto.configuration.buffer-size

设置在 Exchange 有效负载数据中读取的缓冲大小。

2048

整数

camel.component.crypto.configuration.certificate

设置用于根据交换中的签名根据其有效负载验证签名的证书。

 

证书

camel.component.crypto.configuration.certificate-name

为 registry 中的 PrivateKey 设置引用名称。

 

字符串

camel.component.crypto.configuration.clear-headers

确定签名和验证后是否清除 Signature 特定标头。默认为 true,且仅应以其他方式作为重要的私有信息进行,如果未设置,则密钥和密码可能会退出。

true

布尔值

camel.component.crypto.configuration.crypto-operation

在 endpoint uri 的 crypto scheme 后设置 Crypto 操作,即 crypto scheme e.g. crypto:sign sets sign as the operation.

 

CryptoOperation

camel.component.crypto.configuration.key-store-parameters

设置可包含密钥的 KeyStore 和 Certficates,以用于签名和验证基于给定 KeyStoreParameters 的交换。KeyStore 通常与别名一起使用,即 Route 定义中提供的一个,或者通过消息标头 CamelSignatureKeyStoreAlias 动态地使用。如果没有提供别名,并且密钥存储中只有一个条目,则会使用这个单一条目。

 

KeyStoreParameters

camel.component.crypto.configuration.keystore

设置可包含密钥的 KeyStore 和 Certficates,以用于签名和验证交换。KeyStore 通常与别名一起使用,即 Route 定义中提供的一个,或者通过消息标头 CamelSignatureKeyStoreAlias 动态地使用。如果没有提供别名,并且密钥存储中只有一个条目,则会使用这个单一条目。

 

KeyStore

camel.component.crypto.configuration.keystore-name

为 registry 中的密钥存储设置引用名称。

 

字符串

camel.component.crypto.configuration.name

此操作的逻辑名称。

 

字符串

camel.component.crypto.configuration.password

设置用于访问 KeyStore 中的别名 PrivateKey 的密码。

 

Character[]

camel.component.crypto.configuration.private-key

设置用于签署交换的 PrivateKey

 

PrivateKey

camel.component.crypto.configuration.private-key-name

为 registry 中的 PrivateKey 设置引用名称。

 

字符串

camel.component.crypto.configuration.provider

设置提供配置的签名算法的安全供应商的 id。

 

字符串

camel.component.crypto.configuration.public-key

设置用于验证交换中的签名的 PublicKey。

 

PublicKey

camel.component.crypto.configuration.public-key-name

上下文更改时应解析的引用

 

字符串

camel.component.crypto.configuration.secure-random

设置用于初始化签名服务的 SecureRandom

 

SecureRandom

camel.component.crypto.configuration.secure-random-name

为 registry 中的安全Random 设置引用名称。

 

字符串

camel.component.crypto.configuration.signature-header-name

设置用于存储 base64 编码签名的消息标头的名称。默认为 'CamelDigitalSignature'

 

字符串

camel.component.crypto.enabled

启用加密组件

true

布尔值

camel.component.crypto.resolve-property-placeholders

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

true

布尔值

camel.dataformat.crypto.algorithm

JCE 算法名称表示将使用的加密算法。默认为 DES/CBC/PKCS5Padding。

DES/CBC/PKCS5Padding

字符串

camel.dataformat.crypto.algorithm-parameter-ref

用于初始化 Cipher 的 JCE AlgorithmParameterSpec。将使用指定名称作为 java.security.spec.AlgorithmParameterSpec 类型查找类型。

 

字符串

camel.dataformat.crypto.buffersize

签名过程中使用的缓冲区的大小。

 

整数

camel.dataformat.crypto.content-type-header

如果数据格式能够这样做,则数据格式是否应该以 data 格式设置 Content-Type 标头。例如,用于数据格式的 application/xml (数据格式)或 application/json 用于数据格式 marshalling to JSon etc。

false

布尔值

camel.dataformat.crypto.crypto-provider

应使用的 JCE 安全提供程序的名称。

 

字符串

camel.dataformat.crypto.enabled

启用加密数据格式

true

布尔值

camel.dataformat.crypto.init-vector-ref

指的是包含初始化向量的字节阵列,用于初始化 Cipher。

 

字符串

camel.dataformat.crypto.inline

表示配置的 IV 应该内联到加密的数据流中的标志。默认为 false。

false

布尔值

camel.dataformat.crypto.key-ref

是指使用寄存器中查找的 secret 密钥。

 

字符串

camel.dataformat.crypto.mac-algorithm

JCE 算法名称表示消息身份验证算法。

HmacSHA1

字符串

camel.dataformat.crypto.should-append-h-m-a-c

表示消息身份验证代码应计算并附加到加密数据的标志。

false

布尔值

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat