27.9. Spring Boot Auto-Configuration
组件支持以下列出的 47 选项。
| Name | 描述 | 默认值 | 类型 |
|---|---|---|---|
| camel.component.crypto.algorithm | 设置用于签名者的 Algorithm 的 JCE 名称。 | SHA256withRSA | 字符串 |
| camel.component.crypto.alias | 设置用于查询密钥和 {link java.security.cert.Certificate Certificates} 的别名,用于签名和验证交换。这个值可以通过消息标头 org.apache.camel.component.crypto.DigitalSignatureConstantsKEYSTOREKEYSTORE_ALIAS 在运行时提供。 | 字符串 | |
| camel.component.crypto.autowired-enabled | 是否启用自动关闭。这用于自动写入选项(选项必须标记为 auto-wired),方法是在 registry 中查找是否有单个匹配类型实例,然后在组件上配置。这可以用于自动配置 JDBC 数据源、JMS 连接工厂、AWS 客户端等。 | true | 布尔值 |
| camel.component.crypto.buffer-size | 设置在 Exchange payload 数据中用于读取的缓冲区的大小。 | 2048 | 整数 |
| camel.component.crypto.certificate | 设置应在交换中根据其有效负载验证签名的证书。选项是一个 java.security.cert.Certificate 类型。 | 证书 | |
| camel.component.crypto.certificate-name | 设置 registry 中可找到的 PrivateKey 的引用名称。 | 字符串 | |
| camel.component.crypto.clear-headers | 决定在签名和验证后是否清除 Signature 特定标头。默认为 true,并且只应在您的极端考虑,因为密钥和密码等重要私有信息(如果未设置)可能会转义。 | true | 布尔值 |
| camel.component.crypto.configuration | 使用共享 DigitalSignatureConfiguration 作为配置。选项是 org.apache.camel.component.crypto.DigitalSignatureConfiguration 类型。 | DigitalSignatureConfiguration | |
| camel.component.crypto.enabled | 是否启用加密组件的自动配置。这默认是启用的。 | 布尔值 | |
| camel.component.crypto.key-store-parameters | 设置 KeyStore,可以包含密钥和 Certficates,用于根据给定的 KeyStoreParameters 签名和验证交换。KeyStore 通常与别名一起使用,可以是 Route 定义中提供的,或者通过消息标头 CamelSignatureKeyStoreAlias 动态使用。如果没有提供别名,且在 Keystore 中只有一个条目,则会使用这个单个条目。选项是 org.apache.camel.support.jsse.KeyStoreParameters 类型。 | KeyStoreParameters | |
| camel.component.crypto.keystore | 设置 KeyStore,可以包含用于签名和验证交换的密钥和 Certficates。KeyStore 通常与别名一起使用,可以是 Route 定义中提供的,或者通过消息标头 CamelSignatureKeyStoreAlias 动态使用。如果没有提供别名,且在 Keystore 中只有一个条目,则会使用这个单个条目。选项是一个 java.security.KeyStore 类型。 | KeyStore | |
| camel.component.crypto.keystore-name | 设置 registry 中可找到的密钥存储的引用名称。 | 字符串 | |
| camel.component.crypto.lazy-start-producer | 生成者是否应懒惰启动 (在第一个消息中)。通过懒惰启动,您可以使用此选项来允许 CamelContext 和路由在生成者启动期间启动,并导致路由启动失败。通过延迟启动,启动失败可在路由消息期间通过 Camel 路由错误处理程序进行处理。请注意,在处理第一个消息时,创建并启动生成者可能需要稍等时间,并延长处理的总处理时间。 | false | 布尔值 |
| camel.component.crypto.password | 设置用于访问 KeyStore 中别名的 PrivateKey 的密码。 | 字符串 | |
| camel.component.crypto.private-key | 设置用于签署交换的 PrivateKey。选项是一个 java.security.PrivateKey 类型。 | PrivateKey | |
| camel.component.crypto.private-key-name | 设置 registry 中可找到的 PrivateKey 的引用名称。 | 字符串 | |
| camel.component.crypto.provider | 设置提供配置的签名算法的安全供应商的 ID。 | 字符串 | |
| camel.component.crypto.public-key | 设置应在交换中验证签名的 PublicKey。选项是一个 java.security.PublicKey 类型。 | PublicKey | |
| camel.component.crypto.public-key-name | 上下文更改时应解析的引用。 | 字符串 | |
| camel.component.crypto.secure-random | 设置用于初始化签名服务的 SecureRandom。选项是一个 java.security.SecureRandom 类型。 | SecureRandom | |
| camel.component.crypto.secure-random-name | 设置可在 registry 中找到的 SecureRandom 的引用名称。 | 字符串 | |
| camel.component.crypto.signature-header-name | 设置用于存储 base64 编码签名的消息标头的名称。默认为 'CamelDigitalSignature'。 | 字符串 | |
| camel.dataformat.crypto.algorithm | 指示要使用的加密算法的 JCE 算法名称。 | 字符串 | |
| camel.dataformat.crypto.algorithm-parameter-ref | 用于初始化 Cipher 的 JCE AlgorithmParameterSpec。将指定名称用作 java.security.spec.AlgorithmParameterSpec 类型来查找类型。 | 字符串 | |
| camel.dataformat.crypto.buffer-size | 签名进程中使用的缓冲区的大小。 | 4096 | 整数 |
| camel.dataformat.crypto.crypto-provider | 应使用的 JCE Security Provider 的名称。 | 字符串 | |
| camel.dataformat.crypto.enabled | 是否启用加密数据格式的自动配置。这默认是启用的。 | 布尔值 | |
| camel.dataformat.crypto.init-vector-ref | 指的是包含 Initialization Vector 的字节数组,用于初始化 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 | 表示消息身份验证代码应计算并附加到加密的数据的标志。 | true | 布尔值 |
| camel.dataformat.pgp.algorithm | 对称密钥加密算法;可能的值在 org.bouncycastle.bcpg.SymmetricKeyAlgorithmTags 中定义;例如 2 (= TRIPLE DES), 3 (= CAST5), 4 (= BLOWFISH), 6 (= DES), 7 (= AES_128)。仅适用于加密。 | 整数 | |
| camel.dataformat.pgp.armored | 此选项将使 PGP 对加密文本进行 base64 编码,使它可用于复制/粘贴等。 | false | 布尔值 |
| camel.dataformat.pgp.compression-algorithm | 压缩算法;可能的值在 org.bouncycastle.bcpg.CompressionAlgorithmTags 中定义;例如 0 (= UNCOMPRESSED), 1 (= ZIP), 2 (= ZLIB), 3 (= BZIP2)。仅适用于加密。 | 整数 | |
| camel.dataformat.pgp.enabled | 是否启用 pgp 数据格式的自动配置。这默认是启用的。 | 布尔值 | |
| camel.dataformat.pgp.hash-algorithm | 签名哈希算法;可能的值在 org.bouncycastle.bcpg.HashAlgorithmTags 中定义;例如 2 (= SHA1), 8 (= SHA256), 9 (= SHA384), 10 (= SHA512), 11 (=SHA224)。仅与签名相关。 | 整数 | |
| camel.dataformat.pgp.integrity | 在加密文件中添加完整性检查/签名。默认值为 true。 | true | 布尔值 |
| camel.dataformat.pgp.key-file-name | 密钥环的文件名;必须作为类路径资源访问(但您可以使用 file: 前缀指定文件系统中的位置)。 | 字符串 | |
| camel.dataformat.pgp.key-userid | 加密期间使用的 PGP 密钥环中的密钥用户 ID。也可以是用户 ID 的一部分。例如,如果用户 ID 是 Test User,您可以使用 part Test User 或处理用户 ID。 | 字符串 | |
| camel.dataformat.pgp.password | 打开私钥时使用的密码(未用于加密)。 | 字符串 | |
| camel.dataformat.pgp.provider | Java Cryptography Extension (JCE)供应商,默认为 Bouncy Castle (BC)。或者,您可以使用 IAIK JCE 供应商;在这种情况下,必须事先注册供应商,而且不能事先注册 Bouncy Castle 供应商。Sun JCE 供应商无法正常工作。 | 字符串 | |
| camel.dataformat.pgp.signature-key-file-name | 用于签名(加密加密)或签名验证(解密)的密钥环文件名; 必须作为类路径资源访问(但您可以使用 file: prefix 指定文件系统中的位置)。 | 字符串 | |
| camel.dataformat.pgp.signature-key-ring | 用于签名/验证为字节阵列的密钥环。您不能同时设置 signatureKeyFileName 和 signatureKeyRing。 | 字符串 | |
| camel.dataformat.pgp.signature-key-userid | PGP 密钥环中的密钥 ID,用于签名(加密)或签名验证(解密)。在签名验证过程中,指定的用户 ID 会限制可用于验证的公钥。如果没有为签名验证指定用户 ID,则使用公钥密钥环中的任何公钥进行验证。也可以是用户 ID 的一部分。例如,如果用户 ID 是 Test User,您可以使用 part Test User 或处理用户 ID。 | 字符串 | |
| camel.dataformat.pgp.signature-password | 打开用于签名的私钥时使用的密码(加密)。 | 字符串 | |
| camel.dataformat.pgp.signature-verification-option | 控制在 un-marshaling 期间验证签名的行为。可能有 4 个值:可选:PGP 消息可能包含签名;如果包含签名,则执行签名验证。需要:PGP 消息必须至少包含一个签名;如果这不是异常(PGPException)的情况。执行签名验证。忽略:PGP 消息中的包含签名被忽略;没有执行签名验证。no_signature_allowed: PGP 消息不得包含签名;否则抛出异常(PGPException)。 | 字符串 |