This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new ee9d377369ee camel-crypto: two header javaTypes leave Certificate and
PublicKey unqualified (#30101)
ee9d377369ee is described below
commit ee9d377369eec0f1a49b5126d91deaf59da012c5
Author: dhairya05 <[email protected]>
AuthorDate: Mon Nov 16 01:39:27 2026 +0530
camel-crypto: two header javaTypes leave Certificate and PublicKey
unqualified (#30101)
---
.../resources/org/apache/camel/catalog/components/crypto.json | 2 +-
.../resources/META-INF/org/apache/camel/component/crypto/crypto.json | 2 +-
.../org/apache/camel/component/crypto/DigitalSignatureConstants.java | 2 +-
.../builder/endpoint/dsl/DigitalSignatureEndpointBuilderFactory.java | 3 ++-
4 files changed, 5 insertions(+), 4 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/crypto.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/crypto.json
index 92b59ae82989..01ebdf935326 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/crypto.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/crypto.json
@@ -48,7 +48,7 @@
},
"headers": {
"CamelSignaturePrivateKey": { "index": 0, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType":
"java.security.PrivateKey", "deprecated": false, "autowired": false, "secret":
false, "description": "The PrivateKey that should be used to sign the message",
"constantName":
"org.apache.camel.component.crypto.DigitalSignatureConstants#SIGNATURE_PRIVATE_KEY"
},
- "CamelSignaturePublicKeyOrCert": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Certificate or PublicKey", "deprecated": false, "autowired":
false, "secret": false, "description": "The Certificate or PublicKey that
should be used to verify the signature. When set, it is used instead of the
publicKey, certificate or keystore of the endpoint", "constantName":
"org.apache.camel.component.crypto.DigitalSignatureConstan [...]
+ "CamelSignaturePublicKeyOrCert": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "java.security.cert.Certificate or java.security.PublicKey",
"deprecated": false, "autowired": false, "secret": false, "description": "The
Certificate or PublicKey that should be used to verify the signature. When set,
it is used instead of the publicKey, certificate or keystore of the endpoint",
"constantName": "org.apache.camel.compone [...]
"CamelDigitalSignature": { "index": 2, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "byte[]
(Base64 encoded)", "deprecated": false, "autowired": false, "secret": false,
"description": "The signature of the message, set by the sign operation and
read by the verify operation (the signatureHeaderName option changes the header
name)", "constantName":
"org.apache.camel.component.crypto.DigitalSignatureConstants#SIGNATURE" },
"CamelSignatureKeyStoreAlias": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The alias used to query the KeyStore for keys and Certificates
to be used in signing and verifying exchanges", "constantName":
"org.apache.camel.component.crypto.DigitalSignatureConstants#KEYSTORE_ALIAS" },
"CamelSignatureKeyStorePassword": { "index": 4, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "char[]", "deprecated": false, "autowired": false, "secret": false,
"description": "The password used to access an aliased PrivateKey in the
KeyStore.", "constantName":
"org.apache.camel.component.crypto.DigitalSignatureConstants#KEYSTORE_PASSWORD"
}
diff --git
a/components/camel-crypto/src/generated/resources/META-INF/org/apache/camel/component/crypto/crypto.json
b/components/camel-crypto/src/generated/resources/META-INF/org/apache/camel/component/crypto/crypto.json
index 92b59ae82989..01ebdf935326 100644
---
a/components/camel-crypto/src/generated/resources/META-INF/org/apache/camel/component/crypto/crypto.json
+++
b/components/camel-crypto/src/generated/resources/META-INF/org/apache/camel/component/crypto/crypto.json
@@ -48,7 +48,7 @@
},
"headers": {
"CamelSignaturePrivateKey": { "index": 0, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType":
"java.security.PrivateKey", "deprecated": false, "autowired": false, "secret":
false, "description": "The PrivateKey that should be used to sign the message",
"constantName":
"org.apache.camel.component.crypto.DigitalSignatureConstants#SIGNATURE_PRIVATE_KEY"
},
- "CamelSignaturePublicKeyOrCert": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Certificate or PublicKey", "deprecated": false, "autowired":
false, "secret": false, "description": "The Certificate or PublicKey that
should be used to verify the signature. When set, it is used instead of the
publicKey, certificate or keystore of the endpoint", "constantName":
"org.apache.camel.component.crypto.DigitalSignatureConstan [...]
+ "CamelSignaturePublicKeyOrCert": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "java.security.cert.Certificate or java.security.PublicKey",
"deprecated": false, "autowired": false, "secret": false, "description": "The
Certificate or PublicKey that should be used to verify the signature. When set,
it is used instead of the publicKey, certificate or keystore of the endpoint",
"constantName": "org.apache.camel.compone [...]
"CamelDigitalSignature": { "index": 2, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "byte[]
(Base64 encoded)", "deprecated": false, "autowired": false, "secret": false,
"description": "The signature of the message, set by the sign operation and
read by the verify operation (the signatureHeaderName option changes the header
name)", "constantName":
"org.apache.camel.component.crypto.DigitalSignatureConstants#SIGNATURE" },
"CamelSignatureKeyStoreAlias": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The alias used to query the KeyStore for keys and Certificates
to be used in signing and verifying exchanges", "constantName":
"org.apache.camel.component.crypto.DigitalSignatureConstants#KEYSTORE_ALIAS" },
"CamelSignatureKeyStorePassword": { "index": 4, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "char[]", "deprecated": false, "autowired": false, "secret": false,
"description": "The password used to access an aliased PrivateKey in the
KeyStore.", "constantName":
"org.apache.camel.component.crypto.DigitalSignatureConstants#KEYSTORE_PASSWORD"
}
diff --git
a/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConstants.java
b/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConstants.java
index 18afc6a9408e..1534f18a1c47 100644
---
a/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConstants.java
+++
b/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConstants.java
@@ -26,7 +26,7 @@ public final class DigitalSignatureConstants {
public static final String SIGNATURE_PRIVATE_KEY =
"CamelSignaturePrivateKey";
@Metadata(description = "The Certificate or PublicKey that should be used
to verify the signature. When set, it is"
+ " used instead of the publicKey, certificate or
keystore of the endpoint",
- javaType = "Certificate or PublicKey")
+ javaType = "java.security.cert.Certificate or
java.security.PublicKey")
public static final String SIGNATURE_PUBLIC_KEY_OR_CERT =
"CamelSignaturePublicKeyOrCert";
@Metadata(description = "The signature of the message, set by the sign
operation and read by the verify operation"
+ " (the signatureHeaderName option changes the
header name)",
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DigitalSignatureEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DigitalSignatureEndpointBuilderFactory.java
index cb12c5f3b7cd..0d5cb906ce53 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DigitalSignatureEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DigitalSignatureEndpointBuilderFactory.java
@@ -622,7 +622,8 @@ public interface DigitalSignatureEndpointBuilderFactory {
* signature. When set, it is used instead of the publicKey,
certificate
* or keystore of the endpoint.
*
- * The option is a: {@code Certificate or PublicKey} type.
+ * The option is a: {@code java.security.cert.Certificate or
+ * java.security.PublicKey} type.
*
* Group: producer
*