74.4. Spring Boot Auto-Configuration
组件支持 33 选项,如下所列。
Name | 描述 | 默认值 | 类型 |
---|---|---|---|
camel.component.crypto.configuration.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 有效负载数据中读取的缓冲区的大小。 | 2048 | 整数 |
camel.component.crypto.configuration.certificate | 设置应用来根据其有效负载验证交换中的签名的证书。 | 证书 | |
camel.component.crypto.configuration.certificate-name | 为 registry 中的 PrivateKey 设置引用名称。 | 字符串 | |
camel.component.crypto.configuration.clear-headers | 确定签名和验证后是否清除了签名特定标头。默认为 true,且应只在每个情况下进行其他影响,因为如果未设置,密钥和密码等重要私有信息可能会转义。 | true | 布尔值 |
camel.component.crypto.configuration.crypto-operation | 在 endpoint uri e.g. crypto:sign 设置签名为操作中的加密方案后,设置 Crypto 操作。 | CryptoOperation | |
camel.component.crypto.configuration.key-store-parameters | 根据给定的 KeyStoreParameters 设置可包含用于签名和验证交换的密钥和 Certficates 的 KeyStore。KeyStore 通常与别名一起使用,可以是在 Route 定义中提供的,或者通过消息标头 CamelSignatureKeyStoreAlias 进行动态使用。如果没有提供别名,且密钥存储中只有一个条目,则将使用此单个条目。 | KeyStoreParameters | |
camel.component.crypto.configuration.keystore | 设置可包含用于签名和验证交换的密钥和 Certficates 的 KeyStore。KeyStore 通常与别名一起使用,可以是在 Route 定义中提供的,或者通过消息标头 CamelSignatureKeyStoreAlias 进行动态使用。如果没有提供别名,且密钥存储中只有一个条目,则将使用此单个条目。 | 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 中的 PrivateKey 设置引用名称。 | 字符串 | |
camel.component.crypto.configuration.provider | 设置提供配置的 Signature 算法的安全供应商的 id。 | 字符串 | |
camel.component.crypto.configuration.public-key | 设置用于在交换中验证签名的 PublicKey。 | PublicKey | |
camel.component.crypto.configuration.public-key-name | 在上下文更改时应解析的引用 | 字符串 | |
camel.component.crypto.configuration.secure-random | 设置用于初始化 Signature 服务的 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 标头。例如,用于数据格式到 XML 的 application/xml 或用于数据格式的 application/json 发送到 JSon 等。 | 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 | 布尔值 |