This is an automated email from the ASF dual-hosted git repository.

Croway 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 a18c09507a4a camel-crypto: certificateName is a Certificate reference, 
not a PrivateKey (#29539)
a18c09507a4a is described below

commit a18c09507a4a5bc335db22df85fa3eaddf5dd922
Author: dhairya05 <[email protected]>
AuthorDate: Tue Nov 10 18:18:46 2026 +0530

    camel-crypto: certificateName is a Certificate reference, not a PrivateKey 
(#29539)
    
    * camel-crypto: certificateName is a Certificate reference, not a PrivateKey
    
    The setter javadoc of certificateName, which the catalog and the
    endpoint DSL copy, said "Sets the reference name for a PrivateKey that
    can be found in the registry", the same text as privateKeyName. The
    setter looks the name up as a java.security.cert.Certificate, so say so.
    
    * camel-crypto: regenerate the component DSL for certificateName
    
    certificateName is a component option as well as an endpoint option, so
    CryptoComponentBuilderFactory carries the same javadoc and still said
    PrivateKey. privateKeyName, two options below, keeps its wording.
---
 .../resources/org/apache/camel/catalog/components/crypto.json         | 4 ++--
 .../resources/META-INF/org/apache/camel/component/crypto/crypto.json  | 4 ++--
 .../apache/camel/component/crypto/DigitalSignatureConfiguration.java  | 2 +-
 .../camel/builder/component/dsl/CryptoComponentBuilderFactory.java    | 2 +-
 .../builder/endpoint/dsl/DigitalSignatureEndpointBuilderFactory.java  | 2 +-
 5 files changed, 7 insertions(+), 7 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 3dea8343914d..dffadc4290d0 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
@@ -26,7 +26,7 @@
   "componentProperties": {
     "algorithm": { "index": 0, "kind": "property", "displayName": "Algorithm", 
"group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": "SHA256withRSA", "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the JCE name of the 
Algorithm that should be used for the signer." },
     "alias": { "index": 1, "kind": "property", "displayName": "Alias", 
"group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the alias used to 
query the KeyStore for keys and {link java.security.cert.Certificate 
Certificates} to be used [...]
-    "certificateName": { "index": 2, "kind": "property", "displayName": 
"Certificate Name", "group": "producer", "label": "", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the reference name 
for a PrivateKey that can be found in the registry." },
+    "certificateName": { "index": 2, "kind": "property", "displayName": 
"Certificate Name", "group": "producer", "label": "", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the reference name 
for a Certificate that can be found in the registry." },
     "keystore": { "index": 3, "kind": "property", "displayName": "Keystore", 
"group": "producer", "label": "", "required": false, "type": "object", 
"javaType": "java.security.KeyStore", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the KeyStore that 
can contain keys and Certficates for use in signing and verifying exchanges. A 
Ke [...]
     "keystoreName": { "index": 4, "kind": "property", "displayName": "Keystore 
Name", "group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the reference name 
for a Keystore that can be found in the registry." },
     "lazyStartProducer": { "index": 5, "kind": "property", "displayName": 
"Lazy Start Producer", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": 
"Whether the producer should be started lazy (on the first message). By 
starting lazy you can use this to allow CamelContext and routes to startup in 
situations where a producer may otherwise fail [...]
@@ -62,7 +62,7 @@
     "name": { "index": 1, "kind": "path", "displayName": "Name", "group": 
"producer", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "The logical name of this 
operation." },
     "algorithm": { "index": 2, "kind": "parameter", "displayName": 
"Algorithm", "group": "producer", "label": "", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": "SHA256withRSA", "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the JCE name of the 
Algorithm that should be used for the signer." },
     "alias": { "index": 3, "kind": "parameter", "displayName": "Alias", 
"group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the alias used to 
query the KeyStore for keys and {link java.security.cert.Certificate 
Certificates} to be use [...]
-    "certificateName": { "index": 4, "kind": "parameter", "displayName": 
"Certificate Name", "group": "producer", "label": "", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the reference name 
for a PrivateKey that can be found in the registry." },
+    "certificateName": { "index": 4, "kind": "parameter", "displayName": 
"Certificate Name", "group": "producer", "label": "", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the reference name 
for a Certificate that can be found in the registry." },
     "keystore": { "index": 5, "kind": "parameter", "displayName": "Keystore", 
"group": "producer", "label": "", "required": false, "type": "object", 
"javaType": "java.security.KeyStore", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the KeyStore that 
can contain keys and Certficates for use in signing and verifying exchanges. A 
K [...]
     "keystoreName": { "index": 6, "kind": "parameter", "displayName": 
"Keystore Name", "group": "producer", "label": "", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the reference name 
for a Keystore that can be found in the registry." },
     "privateKey": { "index": 7, "kind": "parameter", "displayName": "Private 
Key", "group": "producer", "label": "", "required": false, "type": "object", 
"javaType": "java.security.PrivateKey", "deprecated": false, "autowired": 
false, "secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Set the PrivateKey that 
should be used to sign the exchange" },
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 3dea8343914d..dffadc4290d0 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
@@ -26,7 +26,7 @@
   "componentProperties": {
     "algorithm": { "index": 0, "kind": "property", "displayName": "Algorithm", 
"group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": "SHA256withRSA", "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the JCE name of the 
Algorithm that should be used for the signer." },
     "alias": { "index": 1, "kind": "property", "displayName": "Alias", 
"group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the alias used to 
query the KeyStore for keys and {link java.security.cert.Certificate 
Certificates} to be used [...]
-    "certificateName": { "index": 2, "kind": "property", "displayName": 
"Certificate Name", "group": "producer", "label": "", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the reference name 
for a PrivateKey that can be found in the registry." },
+    "certificateName": { "index": 2, "kind": "property", "displayName": 
"Certificate Name", "group": "producer", "label": "", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the reference name 
for a Certificate that can be found in the registry." },
     "keystore": { "index": 3, "kind": "property", "displayName": "Keystore", 
"group": "producer", "label": "", "required": false, "type": "object", 
"javaType": "java.security.KeyStore", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the KeyStore that 
can contain keys and Certficates for use in signing and verifying exchanges. A 
Ke [...]
     "keystoreName": { "index": 4, "kind": "property", "displayName": "Keystore 
Name", "group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the reference name 
for a Keystore that can be found in the registry." },
     "lazyStartProducer": { "index": 5, "kind": "property", "displayName": 
"Lazy Start Producer", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": 
"Whether the producer should be started lazy (on the first message). By 
starting lazy you can use this to allow CamelContext and routes to startup in 
situations where a producer may otherwise fail [...]
@@ -62,7 +62,7 @@
     "name": { "index": 1, "kind": "path", "displayName": "Name", "group": 
"producer", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "The logical name of this 
operation." },
     "algorithm": { "index": 2, "kind": "parameter", "displayName": 
"Algorithm", "group": "producer", "label": "", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": "SHA256withRSA", "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the JCE name of the 
Algorithm that should be used for the signer." },
     "alias": { "index": 3, "kind": "parameter", "displayName": "Alias", 
"group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the alias used to 
query the KeyStore for keys and {link java.security.cert.Certificate 
Certificates} to be use [...]
-    "certificateName": { "index": 4, "kind": "parameter", "displayName": 
"Certificate Name", "group": "producer", "label": "", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the reference name 
for a PrivateKey that can be found in the registry." },
+    "certificateName": { "index": 4, "kind": "parameter", "displayName": 
"Certificate Name", "group": "producer", "label": "", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the reference name 
for a Certificate that can be found in the registry." },
     "keystore": { "index": 5, "kind": "parameter", "displayName": "Keystore", 
"group": "producer", "label": "", "required": false, "type": "object", 
"javaType": "java.security.KeyStore", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the KeyStore that 
can contain keys and Certficates for use in signing and verifying exchanges. A 
K [...]
     "keystoreName": { "index": 6, "kind": "parameter", "displayName": 
"Keystore Name", "group": "producer", "label": "", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Sets the reference name 
for a Keystore that can be found in the registry." },
     "privateKey": { "index": 7, "kind": "parameter", "displayName": "Private 
Key", "group": "producer", "label": "", "required": false, "type": "object", 
"javaType": "java.security.PrivateKey", "deprecated": false, "autowired": 
false, "secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.crypto.DigitalSignatureConfiguration", 
"configurationField": "configuration", "description": "Set the PrivateKey that 
should be used to sign the exchange" },
diff --git 
a/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConfiguration.java
 
b/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConfiguration.java
index 7f05ab679904..01010403f666 100644
--- 
a/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConfiguration.java
+++ 
b/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConfiguration.java
@@ -284,7 +284,7 @@ public class DigitalSignatureConfiguration implements 
Cloneable, CamelContextAwa
     }
 
     /**
-     * Sets the reference name for a PrivateKey that can be found in the 
registry.
+     * Sets the reference name for a Certificate that can be found in the 
registry.
      */
     public void setCertificateName(String certificateName) {
         if (context != null && certificateName != null) {
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CryptoComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CryptoComponentBuilderFactory.java
index 533be6662876..b6cd8265e42b 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CryptoComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CryptoComponentBuilderFactory.java
@@ -90,7 +90,7 @@ public interface CryptoComponentBuilderFactory {
         }
     
         /**
-         * Sets the reference name for a PrivateKey that can be found in the
+         * Sets the reference name for a Certificate that can be found in the
          * registry.
          * 
          * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
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 18c753f2dac8..36bbf64582ae 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
@@ -80,7 +80,7 @@ public interface DigitalSignatureEndpointBuilderFactory {
             return this;
         }
         /**
-         * Sets the reference name for a PrivateKey that can be found in the
+         * Sets the reference name for a Certificate that can be found in the
          * registry.
          * 
          * The option is a: <code>java.lang.String</code> type.

Reply via email to