76.2. Spring Boot Auto-Configuration
组件支持 33 选项,如下所列。
| Name | 描述 | 默认值 | 类型 |
|---|---|---|---|
| camel.component.crypto.configuration.algorithm | 设置用于签名者的 Algorithm 的 JCE 名称。 | SHA1WithDSA | 字符串 |
| camel.component.crypto.configuration.alias | 设置用于查询 KeyStore 的别名,并链接 java.security.cert.Certificate 证书以签名和验证交换。这个值可以通过消息标头 org.apache.camel.component.crypto.DigitalSignatureConstants #KEYSTORE_ALIAS 在运行时提供 | 字符串 | |
| camel.component.crypto.configuration.buffer-size | 设置在 Exchange payload 数据中用于读取的缓冲区的大小。 | 2048 | 整数 |
| camel.component.crypto.configuration.certificate | 设置应在交换中根据其有效负载验证签名的证书。 | 证书 | |
| camel.component.crypto.configuration.certificate-name | 为 registry 中可以 fond 的 PrivateKey 设置引用名称。 | 字符串 | |
| camel.component.crypto.configuration.clear-headers | 决定在签名和验证后是否清除 Signature 特定标头。默认为 true,并且只应在您的极端考虑,因为密钥和密码等重要私有信息(如果未设置)可能会转义。 | true | 布尔值 |
| camel.component.crypto.configuration.crypto-operation | 在 endpoint uri .g. crypto:sign set sign as the operation 中的 crypto scheme 后设置 Crypto 操作。 | CryptoOperation | |
| camel.component.crypto.configuration.key-store-parameters | 设置 KeyStore,可以包含密钥和 Certficates,用于根据给定的 KeyStoreParameters 签名和验证交换。KeyStore 通常与别名一起使用,可以是 Route 定义中提供的,或者通过消息标头 CamelSignatureKeyStoreAlias 动态使用。如果没有提供别名,且在 Keystore 中只有一个条目,则会使用这个单个条目。 | KeyStoreParameters | |
| camel.component.crypto.configuration.keystore | 设置 KeyStore,可以包含用于签名和验证交换的密钥和 Certficates。KeyStore 通常与别名一起使用,可以是 Route 定义中提供的,或者通过消息标头 CamelSignatureKeyStoreAlias 动态使用。如果没有提供别名,且在 Keystore 中只有一个条目,则会使用这个单个条目。 | KeyStore | |
| camel.component.crypto.configuration.keystore-name | 为 registry 中可以 fond 的密钥存储设置引用名称。 | 字符串 | |
| 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 中可以 fond 的 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 中可以 fond 的 SecureRandom 设置引用名称。 | 字符串 | |
| 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 放入 XML 或用于数据格式的 application/json,如 JSon 等。 | false | 布尔值 |
| camel.dataformat.crypto.crypto-provider | 应使用的 JCE Security Provider 的名称。 | 字符串 | |
| camel.dataformat.crypto.enabled | 启用加密数据 | true | 布尔值 |
| 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 | 表示消息身份验证代码应计算并附加到加密的数据的标志。 | false | 布尔值 |
ND