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

davsclaus pushed a commit to branch df2
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 0745ff58835ff6f5efd2a522e79561ce4c72f32e
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Aug 18 14:43:36 2025 +0200

    CAMEL-22354: dataformats - Align all data formats getter setters to model
---
 .../org/apache/camel/catalog/dataformats/crypto.json   |  6 +++---
 .../org/apache/camel/catalog/models/crypto.json        |  6 +++---
 .../org/apache/camel/catalog/schemas/camel-spring.xsd  |  6 +++---
 .../org/apache/camel/catalog/schemas/camel-xml-io.xsd  |  6 +++---
 .../ROOT/pages/camel-4x-upgrade-guide-4_15.adoc        | 13 +++++++++++++
 .../dsl/yaml/deserializers/ModelDeserializers.java     | 18 +++++++++---------
 .../src/generated/resources/schema/camelYamlDsl.json   | 12 ++++++------
 7 files changed, 40 insertions(+), 27 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats/crypto.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats/crypto.json
index c8e6de4c22f..a1ac745524f 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats/crypto.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats/crypto.json
@@ -18,10 +18,10 @@
   "properties": {
     "id": { "index": 0, "kind": "attribute", "displayName": "Id", "group": 
"common", "required": false, "type": "string", "javaType": "java.lang.String", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
id of this node" },
     "algorithm": { "index": 1, "kind": "attribute", "displayName": 
"Algorithm", "group": "common", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The JCE algorithm name indicating the 
cryptographic algorithm that will be used." },
-    "keyRef": { "index": 2, "kind": "attribute", "displayName": "Key Ref", 
"group": "common", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Refers to the secret key to lookup from the register to use." },
+    "key": { "index": 2, "kind": "attribute", "displayName": "Key", "group": 
"common", "required": false, "type": "object", "javaType": "java.security.Key", 
"deprecated": false, "autowired": false, "secret": false, "description": 
"Refers to the secret key to lookup from the register to use." },
     "cryptoProvider": { "index": 3, "kind": "attribute", "displayName": 
"Crypto Provider", "group": "advanced", "label": "advanced", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "The name of the JCE 
Security Provider that should be used." },
-    "initVectorRef": { "index": 4, "kind": "attribute", "displayName": "Init 
Vector Ref", "group": "advanced", "label": "advanced", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "Refers to a byte array 
containing the Initialization Vector that will be used to initialize the 
Cipher." },
-    "algorithmParameterRef": { "index": 5, "kind": "attribute", "displayName": 
"Algorithm Parameter Ref", "group": "advanced", "label": "advanced", 
"required": false, "type": "string", "javaType": "java.lang.String", 
"deprecated": false, "autowired": false, "secret": false, "description": "A JCE 
AlgorithmParameterSpec used to initialize the Cipher. Will lookup the type 
using the given name as a java.security.spec.AlgorithmParameterSpec type." },
+    "initVector": { "index": 4, "kind": "attribute", "displayName": "Init 
Vector", "group": "advanced", "label": "advanced", "required": false, "type": 
"string", "javaType": "byte[]", "deprecated": false, "autowired": false, 
"secret": false, "description": "Refers to a byte array containing the 
Initialization Vector that will be used to initialize the Cipher." },
+    "algorithmParameterSpec": { "index": 5, "kind": "attribute", 
"displayName": "Algorithm Parameter Spec", "group": "advanced", "label": 
"advanced", "required": false, "type": "object", "javaType": 
"java.security.spec.AlgorithmParameterSpec", "deprecated": false, "autowired": 
false, "secret": false, "description": "A JCE AlgorithmParameterSpec used to 
initialize the Cipher. Will lookup the type using the given name as a 
java.security.spec.AlgorithmParameterSpec type." },
     "bufferSize": { "index": 6, "kind": "attribute", "displayName": "Buffer 
Size", "group": "common", "required": false, "type": "integer", "javaType": 
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "4096", "description": "The size of the buffer used in the 
signature process." },
     "macAlgorithm": { "index": 7, "kind": "attribute", "displayName": "Mac 
Algorithm", "group": "common", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "HmacSHA1", "description": "The JCE algorithm name indicating 
the Message Authentication algorithm." },
     "shouldAppendHMAC": { "index": 8, "kind": "attribute", "displayName": 
"Should Append HMAC", "group": "common", "required": false, "type": "boolean", 
"javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "description": "Flag indicating that a 
Message Authentication Code should be calculated and appended to the encrypted 
data." },
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/crypto.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/crypto.json
index 15955ae7717..792087934b0 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/crypto.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/crypto.json
@@ -15,10 +15,10 @@
   "properties": {
     "id": { "index": 0, "kind": "attribute", "displayName": "Id", "group": 
"common", "required": false, "type": "string", "javaType": "java.lang.String", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
id of this node" },
     "algorithm": { "index": 1, "kind": "attribute", "displayName": 
"Algorithm", "group": "common", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The JCE algorithm name indicating the 
cryptographic algorithm that will be used." },
-    "keyRef": { "index": 2, "kind": "attribute", "displayName": "Key Ref", 
"group": "common", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Refers to the secret key to lookup from the register to use." },
+    "key": { "index": 2, "kind": "attribute", "displayName": "Key", "group": 
"common", "required": false, "type": "object", "javaType": "java.security.Key", 
"deprecated": false, "autowired": false, "secret": false, "description": 
"Refers to the secret key to lookup from the register to use." },
     "cryptoProvider": { "index": 3, "kind": "attribute", "displayName": 
"Crypto Provider", "group": "advanced", "label": "advanced", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "The name of the JCE 
Security Provider that should be used." },
-    "initVectorRef": { "index": 4, "kind": "attribute", "displayName": "Init 
Vector Ref", "group": "advanced", "label": "advanced", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "Refers to a byte array 
containing the Initialization Vector that will be used to initialize the 
Cipher." },
-    "algorithmParameterRef": { "index": 5, "kind": "attribute", "displayName": 
"Algorithm Parameter Ref", "group": "advanced", "label": "advanced", 
"required": false, "type": "string", "javaType": "java.lang.String", 
"deprecated": false, "autowired": false, "secret": false, "description": "A JCE 
AlgorithmParameterSpec used to initialize the Cipher. Will lookup the type 
using the given name as a java.security.spec.AlgorithmParameterSpec type." },
+    "initVector": { "index": 4, "kind": "attribute", "displayName": "Init 
Vector", "group": "advanced", "label": "advanced", "required": false, "type": 
"string", "javaType": "byte[]", "deprecated": false, "autowired": false, 
"secret": false, "description": "Refers to a byte array containing the 
Initialization Vector that will be used to initialize the Cipher." },
+    "algorithmParameterSpec": { "index": 5, "kind": "attribute", 
"displayName": "Algorithm Parameter Spec", "group": "advanced", "label": 
"advanced", "required": false, "type": "object", "javaType": 
"java.security.spec.AlgorithmParameterSpec", "deprecated": false, "autowired": 
false, "secret": false, "description": "A JCE AlgorithmParameterSpec used to 
initialize the Cipher. Will lookup the type using the given name as a 
java.security.spec.AlgorithmParameterSpec type." },
     "bufferSize": { "index": 6, "kind": "attribute", "displayName": "Buffer 
Size", "group": "common", "required": false, "type": "integer", "javaType": 
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "4096", "description": "The size of the buffer used in the 
signature process." },
     "macAlgorithm": { "index": 7, "kind": "attribute", "displayName": "Mac 
Algorithm", "group": "common", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "HmacSHA1", "description": "The JCE algorithm name indicating 
the Message Authentication algorithm." },
     "shouldAppendHMAC": { "index": 8, "kind": "attribute", "displayName": 
"Should Append HMAC", "group": "common", "required": false, "type": "boolean", 
"javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "description": "Flag indicating that a 
Message Authentication Code should be calculated and appended to the encrypted 
data." },
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
index caedc349206..02922dd0fee 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
@@ -8178,7 +8178,7 @@ The JCE algorithm name indicating the cryptographic 
algorithm that will be used.
             </xs:documentation>
           </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="keyRef" type="xs:string">
+        <xs:attribute name="key" type="xs:string">
           <xs:annotation>
             <xs:documentation xml:lang="en">
 <![CDATA[
@@ -8196,7 +8196,7 @@ The name of the JCE Security Provider that should be used.
             </xs:documentation>
           </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="initVectorRef" type="xs:string">
+        <xs:attribute name="initVector" type="xs:string">
           <xs:annotation>
             <xs:documentation xml:lang="en">
 <![CDATA[
@@ -8205,7 +8205,7 @@ Refers to a byte array containing the Initialization 
Vector that will be used to
             </xs:documentation>
           </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="algorithmParameterRef" type="xs:string">
+        <xs:attribute name="algorithmParameterSpec" type="xs:string">
           <xs:annotation>
             <xs:documentation xml:lang="en">
 <![CDATA[
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-xml-io.xsd
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-xml-io.xsd
index e42ffbe6b2c..4a7408cf8af 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-xml-io.xsd
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-xml-io.xsd
@@ -6851,7 +6851,7 @@ The JCE algorithm name indicating the cryptographic 
algorithm that will be used.
             </xs:documentation>
           </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="keyRef" type="xs:string">
+        <xs:attribute name="key" type="xs:string">
           <xs:annotation>
             <xs:documentation xml:lang="en">
 <![CDATA[
@@ -6869,7 +6869,7 @@ The name of the JCE Security Provider that should be used.
             </xs:documentation>
           </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="initVectorRef" type="xs:string">
+        <xs:attribute name="initVector" type="xs:string">
           <xs:annotation>
             <xs:documentation xml:lang="en">
 <![CDATA[
@@ -6878,7 +6878,7 @@ Refers to a byte array containing the Initialization 
Vector that will be used to
             </xs:documentation>
           </xs:annotation>
         </xs:attribute>
-        <xs:attribute name="algorithmParameterRef" type="xs:string">
+        <xs:attribute name="algorithmParameterSpec" type="xs:string">
           <xs:annotation>
             <xs:documentation xml:lang="en">
 <![CDATA[
diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_15.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_15.adoc
index 9e5dca4e16f..179da410975 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_15.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_15.adoc
@@ -5,3 +5,16 @@ from Camel 4.x to 4.y. For example, if you are upgrading Camel 
4.0 to 4.2, then
 from both 4.0 to 4.1 and 4.1 to 4.2.
 
 == Upgrading Camel 4.14 to 4.15
+
+=== Data Formats
+
+The data formats has been refactored to ensure their options are consistent 
and can be mapped from the DSL
+to their implementation using reflection-free configurers. A few data formats 
has therefore changed some option names:
+
+|===
+|**Data Format** |**Old Name** |**New Name**
+|crypto|algorithmParameterRef|algorithmParameterSpec
+|crypto|keyRef|key
+|crypto|initVectorRef|initVector
+|===
+
diff --git 
a/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java
 
b/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java
index 5c07f573d5f..6ef75de1d55 100644
--- 
a/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java
+++ 
b/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java
@@ -2874,13 +2874,13 @@ public final class ModelDeserializers extends 
YamlDeserializerSupport {
             deprecated = false,
             properties = {
                     @YamlProperty(name = "algorithm", type = "string", 
description = "The JCE algorithm name indicating the cryptographic algorithm 
that will be used.", displayName = "Algorithm"),
-                    @YamlProperty(name = "algorithmParameterRef", type = 
"string", description = "A JCE AlgorithmParameterSpec used to initialize the 
Cipher. Will lookup the type using the given name as a 
java.security.spec.AlgorithmParameterSpec type.", displayName = "Algorithm 
Parameter Ref"),
+                    @YamlProperty(name = "algorithmParameterSpec", type = 
"string", description = "A JCE AlgorithmParameterSpec used to initialize the 
Cipher. Will lookup the type using the given name as a 
java.security.spec.AlgorithmParameterSpec type.", displayName = "Algorithm 
Parameter Spec"),
                     @YamlProperty(name = "bufferSize", type = "number", 
defaultValue = "4096", description = "The size of the buffer used in the 
signature process.", displayName = "Buffer Size"),
                     @YamlProperty(name = "cryptoProvider", type = "string", 
description = "The name of the JCE Security Provider that should be used.", 
displayName = "Crypto Provider"),
                     @YamlProperty(name = "id", type = "string", description = 
"The id of this node", displayName = "Id"),
-                    @YamlProperty(name = "initVectorRef", type = "string", 
description = "Refers to a byte array containing the Initialization Vector that 
will be used to initialize the Cipher.", displayName = "Init Vector Ref"),
+                    @YamlProperty(name = "initVector", type = "string", 
description = "Refers to a byte array containing the Initialization Vector that 
will be used to initialize the Cipher.", displayName = "Init Vector"),
                     @YamlProperty(name = "inline", type = "boolean", 
description = "Flag indicating that the configured IV should be inlined into 
the encrypted data stream. Is by default false.", displayName = "Inline"),
-                    @YamlProperty(name = "keyRef", type = "string", 
description = "Refers to the secret key to lookup from the register to use.", 
displayName = "Key Ref"),
+                    @YamlProperty(name = "key", type = "string", description = 
"Refers to the secret key to lookup from the register to use.", displayName = 
"Key"),
                     @YamlProperty(name = "macAlgorithm", type = "string", 
defaultValue = "HmacSHA1", description = "The JCE algorithm name indicating the 
Message Authentication algorithm.", displayName = "Mac Algorithm"),
                     @YamlProperty(name = "shouldAppendHMAC", type = "boolean", 
description = "Flag indicating that a Message Authentication Code should be 
calculated and appended to the encrypted data.", displayName = "Should Append 
HMAC")
             }
@@ -2905,9 +2905,9 @@ public final class ModelDeserializers extends 
YamlDeserializerSupport {
                     target.setAlgorithm(val);
                     break;
                 }
-                case "algorithmParameterRef": {
+                case "algorithmParameterSpec": {
                     String val = asText(node);
-                    target.setAlgorithmParameterRef(val);
+                    target.setAlgorithmParameterSpec(val);
                     break;
                 }
                 case "bufferSize": {
@@ -2925,9 +2925,9 @@ public final class ModelDeserializers extends 
YamlDeserializerSupport {
                     target.setId(val);
                     break;
                 }
-                case "initVectorRef": {
+                case "initVector": {
                     String val = asText(node);
-                    target.setInitVectorRef(val);
+                    target.setInitVector(val);
                     break;
                 }
                 case "inline": {
@@ -2935,9 +2935,9 @@ public final class ModelDeserializers extends 
YamlDeserializerSupport {
                     target.setInline(val);
                     break;
                 }
-                case "keyRef": {
+                case "key": {
                     String val = asText(node);
-                    target.setKeyRef(val);
+                    target.setKey(val);
                     break;
                 }
                 case "macAlgorithm": {
diff --git 
a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json
 
b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json
index 9e333423e59..9430c39fa1f 100644
--- 
a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json
+++ 
b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json
@@ -10377,9 +10377,9 @@
             "title" : "Algorithm",
             "description" : "The JCE algorithm name indicating the 
cryptographic algorithm that will be used."
           },
-          "algorithmParameterRef" : {
+          "algorithmParameterSpec" : {
             "type" : "string",
-            "title" : "Algorithm Parameter Ref",
+            "title" : "Algorithm Parameter Spec",
             "description" : "A JCE AlgorithmParameterSpec used to initialize 
the Cipher. Will lookup the type using the given name as a 
java.security.spec.AlgorithmParameterSpec type."
           },
           "bufferSize" : {
@@ -10398,9 +10398,9 @@
             "title" : "Id",
             "description" : "The id of this node"
           },
-          "initVectorRef" : {
+          "initVector" : {
             "type" : "string",
-            "title" : "Init Vector Ref",
+            "title" : "Init Vector",
             "description" : "Refers to a byte array containing the 
Initialization Vector that will be used to initialize the Cipher."
           },
           "inline" : {
@@ -10408,9 +10408,9 @@
             "title" : "Inline",
             "description" : "Flag indicating that the configured IV should be 
inlined into the encrypted data stream. Is by default false."
           },
-          "keyRef" : {
+          "key" : {
             "type" : "string",
-            "title" : "Key Ref",
+            "title" : "Key",
             "description" : "Refers to the secret key to lookup from the 
register to use."
           },
           "macAlgorithm" : {

Reply via email to