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 3cba1d62e2b2 camel-pqc: rotateKey requires the CamelPQCNewKeyId
header, which is read from a literal and documented nowhere (#30040)
3cba1d62e2b2 is described below
commit 3cba1d62e2b284cd7c1c06499d55dd393aeeab86
Author: dhairya05 <[email protected]>
AuthorDate: Mon Nov 16 01:41:25 2026 +0530
camel-pqc: rotateKey requires the CamelPQCNewKeyId header, which is read
from a literal and documented nowhere (#30040)
---
.../org/apache/camel/catalog/components/pqc.json | 33 +++++++++++-----------
.../org/apache/camel/component/pqc/pqc.json | 33 +++++++++++-----------
.../apache/camel/component/pqc/PQCConstants.java | 5 ++++
.../apache/camel/component/pqc/PQCProducer.java | 5 ++--
.../endpoint/dsl/PQCEndpointBuilderFactory.java | 14 +++++++++
5 files changed, 56 insertions(+), 34 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pqc.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pqc.json
index f17be27937b7..7f9ada2602bd 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pqc.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pqc.json
@@ -65,22 +65,23 @@
"CamelPQCRemainingSignatures": { "index": 4, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Long", "deprecated": false, "autowired": false, "secret": false,
"description": "The remaining signatures for a stateful key", "constantName":
"org.apache.camel.component.pqc.PQCConstants#REMAINING_SIGNATURES" },
"CamelPQCKeyState": { "index": 5, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType":
"org.apache.camel.component.pqc.stateful.StatefulKeyState", "deprecated":
false, "autowired": false, "secret": false, "description": "The key state for a
stateful key", "constantName":
"org.apache.camel.component.pqc.PQCConstants#KEY_STATE" },
"CamelPQCKeyId": { "index": 6, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
key ID for stateful key operations", "constantName":
"org.apache.camel.component.pqc.PQCConstants#KEY_ID" },
- "CamelPQCKeyPair": { "index": 7, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType":
"java.security.KeyPair", "deprecated": false, "autowired": false, "secret":
false, "description": "The generated key pair", "constantName":
"org.apache.camel.component.pqc.PQCConstants#KEY_PAIR" },
- "CamelPQCKeyFormat": { "index": 8, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
key format for import\/export operations", "constantName":
"org.apache.camel.component.pqc.PQCConstants#KEY_FORMAT" },
- "CamelPQCExportedKey": { "index": 9, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "byte[]",
"deprecated": false, "autowired": false, "secret": false, "description": "The
exported key data", "constantName":
"org.apache.camel.component.pqc.PQCConstants#EXPORTED_KEY" },
- "CamelPQCKeyMetadata": { "index": 10, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType":
"org.apache.camel.component.pqc.lifecycle.KeyMetadata", "deprecated": false,
"autowired": false, "secret": false, "description": "The key metadata",
"constantName": "org.apache.camel.component.pqc.PQCConstants#KEY_METADATA" },
- "CamelPQCKeyList": { "index": 11, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType":
"java.util.List", "deprecated": false, "autowired": false, "secret": false,
"description": "List of key metadata", "constantName":
"org.apache.camel.component.pqc.PQCConstants#KEY_LIST" },
- "CamelPQCAlgorithm": { "index": 12, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
algorithm for key generation", "constantName":
"org.apache.camel.component.pqc.PQCConstants#ALGORITHM" },
- "CamelPQCIncludePrivate": { "index": 13, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "Boolean",
"deprecated": false, "autowired": false, "secret": false, "description":
"Include private key in export", "constantName":
"org.apache.camel.component.pqc.PQCConstants#INCLUDE_PRIVATE" },
- "CamelPQCRevocationReason": { "index": 14, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "Revocation reason", "constantName":
"org.apache.camel.component.pqc.PQCConstants#REVOCATION_REASON" },
- "CamelPQCHybridSignature": { "index": 15, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "byte[]",
"deprecated": false, "autowired": false, "secret": false, "description": "The
hybrid signature combining both classical and PQC signatures", "constantName":
"org.apache.camel.component.pqc.PQCConstants#HYBRID_SIGNATURE" },
- "CamelPQCClassicalSignature": { "index": 16, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "byte[]", "deprecated": false, "autowired": false, "secret": false,
"description": "The classical signature component of a hybrid signature",
"constantName":
"org.apache.camel.component.pqc.PQCConstants#CLASSICAL_SIGNATURE" },
- "CamelPQCPqcSignature": { "index": 17, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "byte[]",
"deprecated": false, "autowired": false, "secret": false, "description": "The
PQC signature component of a hybrid signature", "constantName":
"org.apache.camel.component.pqc.PQCConstants#PQC_SIGNATURE" },
- "CamelPQCClassicalEncapsulation": { "index": 18, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "byte[]", "deprecated": false, "autowired": false, "secret": false,
"description": "The classical encapsulation component of a hybrid KEM",
"constantName":
"org.apache.camel.component.pqc.PQCConstants#CLASSICAL_ENCAPSULATION" },
- "CamelPQCPqcEncapsulation": { "index": 19, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "byte[]", "deprecated": false, "autowired": false, "secret": false,
"description": "The PQC encapsulation component of a hybrid KEM",
"constantName": "org.apache.camel.component.pqc.PQCConstants#PQC_ENCAPSULATION"
},
- "CamelPQCHybridSecretKey": { "index": 20, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType":
"javax.crypto.SecretKey", "deprecated": false, "autowired": false, "secret":
false, "description": "The combined secret key from hybrid KEM operation",
"constantName": "org.apache.camel.component.pqc.PQCConstants#HYBRID_SECRET_KEY"
},
- "CamelPQCHybridEncapsulation": { "index": 21, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "byte[]", "deprecated": false, "autowired": false, "secret": false,
"description": "The hybrid encapsulation combining both classical and PQC
encapsulations", "constantName":
"org.apache.camel.component.pqc.PQCConstants#HYBRID_ENCAPSULATION" },
- "CamelPQCHybridVerification": { "index": 22, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "description": "The verification result of hybrid signature (both must
pass)", "constantName":
"org.apache.camel.component.pqc.PQCConstants#HYBRID_VERIFY" }
+ "CamelPQCNewKeyId": { "index": 7, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
key ID of the new key, for the rotateKey operation. Required by that operation,
which rotates the key held under CamelPQCKeyId into this one.", "constantName":
"org.apache.camel.component.pqc.PQCConstants#NEW_KEY_ID" },
+ "CamelPQCKeyPair": { "index": 8, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType":
"java.security.KeyPair", "deprecated": false, "autowired": false, "secret":
false, "description": "The generated key pair", "constantName":
"org.apache.camel.component.pqc.PQCConstants#KEY_PAIR" },
+ "CamelPQCKeyFormat": { "index": 9, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
key format for import\/export operations", "constantName":
"org.apache.camel.component.pqc.PQCConstants#KEY_FORMAT" },
+ "CamelPQCExportedKey": { "index": 10, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "byte[]",
"deprecated": false, "autowired": false, "secret": false, "description": "The
exported key data", "constantName":
"org.apache.camel.component.pqc.PQCConstants#EXPORTED_KEY" },
+ "CamelPQCKeyMetadata": { "index": 11, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType":
"org.apache.camel.component.pqc.lifecycle.KeyMetadata", "deprecated": false,
"autowired": false, "secret": false, "description": "The key metadata",
"constantName": "org.apache.camel.component.pqc.PQCConstants#KEY_METADATA" },
+ "CamelPQCKeyList": { "index": 12, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType":
"java.util.List", "deprecated": false, "autowired": false, "secret": false,
"description": "List of key metadata", "constantName":
"org.apache.camel.component.pqc.PQCConstants#KEY_LIST" },
+ "CamelPQCAlgorithm": { "index": 13, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
algorithm for key generation", "constantName":
"org.apache.camel.component.pqc.PQCConstants#ALGORITHM" },
+ "CamelPQCIncludePrivate": { "index": 14, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "Boolean",
"deprecated": false, "autowired": false, "secret": false, "description":
"Include private key in export", "constantName":
"org.apache.camel.component.pqc.PQCConstants#INCLUDE_PRIVATE" },
+ "CamelPQCRevocationReason": { "index": 15, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "Revocation reason", "constantName":
"org.apache.camel.component.pqc.PQCConstants#REVOCATION_REASON" },
+ "CamelPQCHybridSignature": { "index": 16, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "byte[]",
"deprecated": false, "autowired": false, "secret": false, "description": "The
hybrid signature combining both classical and PQC signatures", "constantName":
"org.apache.camel.component.pqc.PQCConstants#HYBRID_SIGNATURE" },
+ "CamelPQCClassicalSignature": { "index": 17, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "byte[]", "deprecated": false, "autowired": false, "secret": false,
"description": "The classical signature component of a hybrid signature",
"constantName":
"org.apache.camel.component.pqc.PQCConstants#CLASSICAL_SIGNATURE" },
+ "CamelPQCPqcSignature": { "index": 18, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "byte[]",
"deprecated": false, "autowired": false, "secret": false, "description": "The
PQC signature component of a hybrid signature", "constantName":
"org.apache.camel.component.pqc.PQCConstants#PQC_SIGNATURE" },
+ "CamelPQCClassicalEncapsulation": { "index": 19, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "byte[]", "deprecated": false, "autowired": false, "secret": false,
"description": "The classical encapsulation component of a hybrid KEM",
"constantName":
"org.apache.camel.component.pqc.PQCConstants#CLASSICAL_ENCAPSULATION" },
+ "CamelPQCPqcEncapsulation": { "index": 20, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "byte[]", "deprecated": false, "autowired": false, "secret": false,
"description": "The PQC encapsulation component of a hybrid KEM",
"constantName": "org.apache.camel.component.pqc.PQCConstants#PQC_ENCAPSULATION"
},
+ "CamelPQCHybridSecretKey": { "index": 21, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType":
"javax.crypto.SecretKey", "deprecated": false, "autowired": false, "secret":
false, "description": "The combined secret key from hybrid KEM operation",
"constantName": "org.apache.camel.component.pqc.PQCConstants#HYBRID_SECRET_KEY"
},
+ "CamelPQCHybridEncapsulation": { "index": 22, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "byte[]", "deprecated": false, "autowired": false, "secret": false,
"description": "The hybrid encapsulation combining both classical and PQC
encapsulations", "constantName":
"org.apache.camel.component.pqc.PQCConstants#HYBRID_ENCAPSULATION" },
+ "CamelPQCHybridVerification": { "index": 23, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "description": "The verification result of hybrid signature (both must
pass)", "constantName":
"org.apache.camel.component.pqc.PQCConstants#HYBRID_VERIFY" }
},
"bodyTypes": {
"producerIn": { "carriers": [ "any" ], "byOption": [ { "option":
"operation", "value": "sign", "carriers": [ "text", "bytes", "stream" ] }, {
"option": "operation", "value": "verify", "carriers": [ "text", "bytes",
"stream" ] }, { "option": "operation", "value": "hybridSign", "carriers": [
"text", "bytes", "stream" ] }, { "option": "operation", "value":
"hybridVerify", "carriers": [ "text", "bytes", "stream" ] }, { "option":
"operation", "value": "extractSecretKeyEncapsulation", "car [...]
diff --git
a/components/camel-pqc/src/generated/resources/META-INF/org/apache/camel/component/pqc/pqc.json
b/components/camel-pqc/src/generated/resources/META-INF/org/apache/camel/component/pqc/pqc.json
index f17be27937b7..7f9ada2602bd 100644
---
a/components/camel-pqc/src/generated/resources/META-INF/org/apache/camel/component/pqc/pqc.json
+++
b/components/camel-pqc/src/generated/resources/META-INF/org/apache/camel/component/pqc/pqc.json
@@ -65,22 +65,23 @@
"CamelPQCRemainingSignatures": { "index": 4, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Long", "deprecated": false, "autowired": false, "secret": false,
"description": "The remaining signatures for a stateful key", "constantName":
"org.apache.camel.component.pqc.PQCConstants#REMAINING_SIGNATURES" },
"CamelPQCKeyState": { "index": 5, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType":
"org.apache.camel.component.pqc.stateful.StatefulKeyState", "deprecated":
false, "autowired": false, "secret": false, "description": "The key state for a
stateful key", "constantName":
"org.apache.camel.component.pqc.PQCConstants#KEY_STATE" },
"CamelPQCKeyId": { "index": 6, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
key ID for stateful key operations", "constantName":
"org.apache.camel.component.pqc.PQCConstants#KEY_ID" },
- "CamelPQCKeyPair": { "index": 7, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType":
"java.security.KeyPair", "deprecated": false, "autowired": false, "secret":
false, "description": "The generated key pair", "constantName":
"org.apache.camel.component.pqc.PQCConstants#KEY_PAIR" },
- "CamelPQCKeyFormat": { "index": 8, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
key format for import\/export operations", "constantName":
"org.apache.camel.component.pqc.PQCConstants#KEY_FORMAT" },
- "CamelPQCExportedKey": { "index": 9, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "byte[]",
"deprecated": false, "autowired": false, "secret": false, "description": "The
exported key data", "constantName":
"org.apache.camel.component.pqc.PQCConstants#EXPORTED_KEY" },
- "CamelPQCKeyMetadata": { "index": 10, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType":
"org.apache.camel.component.pqc.lifecycle.KeyMetadata", "deprecated": false,
"autowired": false, "secret": false, "description": "The key metadata",
"constantName": "org.apache.camel.component.pqc.PQCConstants#KEY_METADATA" },
- "CamelPQCKeyList": { "index": 11, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType":
"java.util.List", "deprecated": false, "autowired": false, "secret": false,
"description": "List of key metadata", "constantName":
"org.apache.camel.component.pqc.PQCConstants#KEY_LIST" },
- "CamelPQCAlgorithm": { "index": 12, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
algorithm for key generation", "constantName":
"org.apache.camel.component.pqc.PQCConstants#ALGORITHM" },
- "CamelPQCIncludePrivate": { "index": 13, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "Boolean",
"deprecated": false, "autowired": false, "secret": false, "description":
"Include private key in export", "constantName":
"org.apache.camel.component.pqc.PQCConstants#INCLUDE_PRIVATE" },
- "CamelPQCRevocationReason": { "index": 14, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "Revocation reason", "constantName":
"org.apache.camel.component.pqc.PQCConstants#REVOCATION_REASON" },
- "CamelPQCHybridSignature": { "index": 15, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "byte[]",
"deprecated": false, "autowired": false, "secret": false, "description": "The
hybrid signature combining both classical and PQC signatures", "constantName":
"org.apache.camel.component.pqc.PQCConstants#HYBRID_SIGNATURE" },
- "CamelPQCClassicalSignature": { "index": 16, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "byte[]", "deprecated": false, "autowired": false, "secret": false,
"description": "The classical signature component of a hybrid signature",
"constantName":
"org.apache.camel.component.pqc.PQCConstants#CLASSICAL_SIGNATURE" },
- "CamelPQCPqcSignature": { "index": 17, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "byte[]",
"deprecated": false, "autowired": false, "secret": false, "description": "The
PQC signature component of a hybrid signature", "constantName":
"org.apache.camel.component.pqc.PQCConstants#PQC_SIGNATURE" },
- "CamelPQCClassicalEncapsulation": { "index": 18, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "byte[]", "deprecated": false, "autowired": false, "secret": false,
"description": "The classical encapsulation component of a hybrid KEM",
"constantName":
"org.apache.camel.component.pqc.PQCConstants#CLASSICAL_ENCAPSULATION" },
- "CamelPQCPqcEncapsulation": { "index": 19, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "byte[]", "deprecated": false, "autowired": false, "secret": false,
"description": "The PQC encapsulation component of a hybrid KEM",
"constantName": "org.apache.camel.component.pqc.PQCConstants#PQC_ENCAPSULATION"
},
- "CamelPQCHybridSecretKey": { "index": 20, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType":
"javax.crypto.SecretKey", "deprecated": false, "autowired": false, "secret":
false, "description": "The combined secret key from hybrid KEM operation",
"constantName": "org.apache.camel.component.pqc.PQCConstants#HYBRID_SECRET_KEY"
},
- "CamelPQCHybridEncapsulation": { "index": 21, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "byte[]", "deprecated": false, "autowired": false, "secret": false,
"description": "The hybrid encapsulation combining both classical and PQC
encapsulations", "constantName":
"org.apache.camel.component.pqc.PQCConstants#HYBRID_ENCAPSULATION" },
- "CamelPQCHybridVerification": { "index": 22, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "description": "The verification result of hybrid signature (both must
pass)", "constantName":
"org.apache.camel.component.pqc.PQCConstants#HYBRID_VERIFY" }
+ "CamelPQCNewKeyId": { "index": 7, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
key ID of the new key, for the rotateKey operation. Required by that operation,
which rotates the key held under CamelPQCKeyId into this one.", "constantName":
"org.apache.camel.component.pqc.PQCConstants#NEW_KEY_ID" },
+ "CamelPQCKeyPair": { "index": 8, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType":
"java.security.KeyPair", "deprecated": false, "autowired": false, "secret":
false, "description": "The generated key pair", "constantName":
"org.apache.camel.component.pqc.PQCConstants#KEY_PAIR" },
+ "CamelPQCKeyFormat": { "index": 9, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
key format for import\/export operations", "constantName":
"org.apache.camel.component.pqc.PQCConstants#KEY_FORMAT" },
+ "CamelPQCExportedKey": { "index": 10, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "byte[]",
"deprecated": false, "autowired": false, "secret": false, "description": "The
exported key data", "constantName":
"org.apache.camel.component.pqc.PQCConstants#EXPORTED_KEY" },
+ "CamelPQCKeyMetadata": { "index": 11, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType":
"org.apache.camel.component.pqc.lifecycle.KeyMetadata", "deprecated": false,
"autowired": false, "secret": false, "description": "The key metadata",
"constantName": "org.apache.camel.component.pqc.PQCConstants#KEY_METADATA" },
+ "CamelPQCKeyList": { "index": 12, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType":
"java.util.List", "deprecated": false, "autowired": false, "secret": false,
"description": "List of key metadata", "constantName":
"org.apache.camel.component.pqc.PQCConstants#KEY_LIST" },
+ "CamelPQCAlgorithm": { "index": 13, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
algorithm for key generation", "constantName":
"org.apache.camel.component.pqc.PQCConstants#ALGORITHM" },
+ "CamelPQCIncludePrivate": { "index": 14, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "Boolean",
"deprecated": false, "autowired": false, "secret": false, "description":
"Include private key in export", "constantName":
"org.apache.camel.component.pqc.PQCConstants#INCLUDE_PRIVATE" },
+ "CamelPQCRevocationReason": { "index": 15, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "Revocation reason", "constantName":
"org.apache.camel.component.pqc.PQCConstants#REVOCATION_REASON" },
+ "CamelPQCHybridSignature": { "index": 16, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "byte[]",
"deprecated": false, "autowired": false, "secret": false, "description": "The
hybrid signature combining both classical and PQC signatures", "constantName":
"org.apache.camel.component.pqc.PQCConstants#HYBRID_SIGNATURE" },
+ "CamelPQCClassicalSignature": { "index": 17, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "byte[]", "deprecated": false, "autowired": false, "secret": false,
"description": "The classical signature component of a hybrid signature",
"constantName":
"org.apache.camel.component.pqc.PQCConstants#CLASSICAL_SIGNATURE" },
+ "CamelPQCPqcSignature": { "index": 18, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "byte[]",
"deprecated": false, "autowired": false, "secret": false, "description": "The
PQC signature component of a hybrid signature", "constantName":
"org.apache.camel.component.pqc.PQCConstants#PQC_SIGNATURE" },
+ "CamelPQCClassicalEncapsulation": { "index": 19, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "byte[]", "deprecated": false, "autowired": false, "secret": false,
"description": "The classical encapsulation component of a hybrid KEM",
"constantName":
"org.apache.camel.component.pqc.PQCConstants#CLASSICAL_ENCAPSULATION" },
+ "CamelPQCPqcEncapsulation": { "index": 20, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "byte[]", "deprecated": false, "autowired": false, "secret": false,
"description": "The PQC encapsulation component of a hybrid KEM",
"constantName": "org.apache.camel.component.pqc.PQCConstants#PQC_ENCAPSULATION"
},
+ "CamelPQCHybridSecretKey": { "index": 21, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType":
"javax.crypto.SecretKey", "deprecated": false, "autowired": false, "secret":
false, "description": "The combined secret key from hybrid KEM operation",
"constantName": "org.apache.camel.component.pqc.PQCConstants#HYBRID_SECRET_KEY"
},
+ "CamelPQCHybridEncapsulation": { "index": 22, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "byte[]", "deprecated": false, "autowired": false, "secret": false,
"description": "The hybrid encapsulation combining both classical and PQC
encapsulations", "constantName":
"org.apache.camel.component.pqc.PQCConstants#HYBRID_ENCAPSULATION" },
+ "CamelPQCHybridVerification": { "index": 23, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "description": "The verification result of hybrid signature (both must
pass)", "constantName":
"org.apache.camel.component.pqc.PQCConstants#HYBRID_VERIFY" }
},
"bodyTypes": {
"producerIn": { "carriers": [ "any" ], "byOption": [ { "option":
"operation", "value": "sign", "carriers": [ "text", "bytes", "stream" ] }, {
"option": "operation", "value": "verify", "carriers": [ "text", "bytes",
"stream" ] }, { "option": "operation", "value": "hybridSign", "carriers": [
"text", "bytes", "stream" ] }, { "option": "operation", "value":
"hybridVerify", "carriers": [ "text", "bytes", "stream" ] }, { "option":
"operation", "value": "extractSecretKeyEncapsulation", "car [...]
diff --git
a/components/camel-pqc/src/main/java/org/apache/camel/component/pqc/PQCConstants.java
b/components/camel-pqc/src/main/java/org/apache/camel/component/pqc/PQCConstants.java
index 73b463acff9b..635099a8cd5e 100644
---
a/components/camel-pqc/src/main/java/org/apache/camel/component/pqc/PQCConstants.java
+++
b/components/camel-pqc/src/main/java/org/apache/camel/component/pqc/PQCConstants.java
@@ -47,6 +47,11 @@ public interface PQCConstants {
@Metadata(description = "The key ID for stateful key operations", javaType
= "String")
String KEY_ID = "CamelPQCKeyId";
+ @Metadata(description = "The key ID of the new key, for the rotateKey
operation. Required by that operation,"
+ + " which rotates the key held under CamelPQCKeyId
into this one.",
+ javaType = "String")
+ String NEW_KEY_ID = "CamelPQCNewKeyId";
+
@Metadata(description = "The generated key pair", javaType =
"java.security.KeyPair")
String KEY_PAIR = "CamelPQCKeyPair";
diff --git
a/components/camel-pqc/src/main/java/org/apache/camel/component/pqc/PQCProducer.java
b/components/camel-pqc/src/main/java/org/apache/camel/component/pqc/PQCProducer.java
index 72588287e718..7f15935f1560 100644
---
a/components/camel-pqc/src/main/java/org/apache/camel/component/pqc/PQCProducer.java
+++
b/components/camel-pqc/src/main/java/org/apache/camel/component/pqc/PQCProducer.java
@@ -1175,14 +1175,15 @@ public class PQCProducer extends DefaultProducer {
private void lifecycleRotateKey(Exchange exchange) throws Exception {
KeyLifecycleManager klm = getRequiredKeyLifecycleManager();
String oldKeyId = exchange.getMessage().getHeader(PQCConstants.KEY_ID,
String.class);
- String newKeyId = exchange.getMessage().getHeader("CamelPQCNewKeyId",
String.class);
+ String newKeyId =
exchange.getMessage().getHeader(PQCConstants.NEW_KEY_ID, String.class);
String algorithm =
exchange.getMessage().getHeader(PQCConstants.ALGORITHM, String.class);
if (ObjectHelper.isEmpty(oldKeyId)) {
throw new IllegalArgumentException("Key ID header (" +
PQCConstants.KEY_ID + ") is required for rotateKey");
}
if (ObjectHelper.isEmpty(newKeyId)) {
- throw new IllegalArgumentException("New Key ID header
(CamelPQCNewKeyId) is required for rotateKey");
+ throw new IllegalArgumentException(
+ "New Key ID header (" + PQCConstants.NEW_KEY_ID + ") is
required for rotateKey");
}
if (ObjectHelper.isEmpty(algorithm)) {
throw new IllegalArgumentException("Algorithm header (" +
PQCConstants.ALGORITHM + ") is required for rotateKey");
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/PQCEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/PQCEndpointBuilderFactory.java
index ca49f7de5fa8..f11fcb4f5fa0 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/PQCEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/PQCEndpointBuilderFactory.java
@@ -859,6 +859,20 @@ public interface PQCEndpointBuilderFactory {
public String pQCKeyId() {
return "CamelPQCKeyId";
}
+ /**
+ * The key ID of the new key, for the rotateKey operation. Required by
+ * that operation, which rotates the key held under CamelPQCKeyId into
+ * this one.
+ *
+ * The option is a: {@code String} type.
+ *
+ * Group: producer
+ *
+ * @return the name of the header {@code PQCNewKeyId}.
+ */
+ public String pQCNewKeyId() {
+ return "CamelPQCNewKeyId";
+ }
/**
* The generated key pair.
*