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 65aba8493fd CAMEL-18917: Polished camel-as2 with labels for options.
65aba8493fd is described below
commit 65aba8493fd81f9efc77c2f27db472844e03ab6b
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Jan 27 15:46:52 2023 +0100
CAMEL-18917: Polished camel-as2 with labels for options.
---
.../org/apache/camel/catalog/components/as2.json | 19 +-
.../camel/component/as2/AS2EndpointConfigurer.java | 16 +-
.../org/apache/camel/component/as2/as2.json | 20 +-
.../camel/component/as2/AS2Configuration.java | 18 +-
.../endpoint/dsl/AS2EndpointBuilderFactory.java | 1206 +++++++++++---------
5 files changed, 700 insertions(+), 579 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/as2.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/as2.json
index 9c9f6756db1..2467979125d 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/as2.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/as2.json
@@ -39,12 +39,9 @@
"attachedFileName": { "kind": "parameter", "displayName": "Attached File
Name", "group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The name of the attached file" },
"clientFqdn": { "kind": "parameter", "displayName": "Client Fqdn",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "camel.apache.org", "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The Client Fully Qualified Domain Name (FQDN).
Used in message ids sent by endpoint." },
"compressionAlgorithm": { "kind": "parameter", "displayName": "Compression
Algorithm", "group": "common", "label": "", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.as2.api.AS2CompressionAlgorithm", "enum": [ "ZLIB"
], "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.as2.AS2Configuration",
"configurationField": "configuration", "description": "The algorithm used to
compress EDI message." },
- "decryptingPrivateKey": { "kind": "parameter", "displayName": "Decrypting
Private Key", "group": "common", "label": "", "required": false, "type":
"object", "javaType": "java.security.PrivateKey", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The key used to encrypt the EDI message." },
"dispositionNotificationTo": { "kind": "parameter", "displayName":
"Disposition Notification To", "group": "common", "label": "", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The value of the Disposition-Notification-To
header. Assigning a value to this parameter requests a mes [...]
"ediMessageTransferEncoding": { "kind": "parameter", "displayName": "Edi
Message Transfer Encoding", "group": "common", "label": "", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The transfer encoding of EDI message." },
"ediMessageType": { "kind": "parameter", "displayName": "Edi Message
Type", "group": "common", "label": "", "required": false, "type": "object",
"javaType": "org.apache.http.entity.ContentType", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The content type of EDI message. One of
application\/edifact, application\/edi-x12, application\/edi-consent" },
- "encryptingAlgorithm": { "kind": "parameter", "displayName": "Encrypting
Algorithm", "group": "common", "label": "", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.as2.api.AS2EncryptionAlgorithm", "enum": [
"AES128_CBC", "AES192_CBC", "AES256_CBC", "AES128_CCM", "AES192_CCM",
"AES256_CCM", "AES128_GCM", "AES192_GCM", "AES256_GCM", "CAMELLIA128_CBC",
"CAMELLIA192_CBC", "CAMELLIA256_CBC", "CAST5_CBC", "DES_CBC", "DES_EDE3_CBC",
"GOST28147_GCFB", "IDEA_CBC" [...]
- "encryptingCertificateChain": { "kind": "parameter", "displayName":
"Encrypting Certificate Chain", "group": "common", "label": "", "required":
false, "type": "object", "javaType": "java.security.cert.Certificate[]",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The chain of certificates used to encrypt EDI
message." },
"from": { "kind": "parameter", "displayName": "From", "group": "common",
"label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.as2.AS2Configuration",
"configurationField": "configuration", "description": "The value of the From
header of AS2 message." },
"httpConnectionPoolSize": { "kind": "parameter", "displayName": "Http
Connection Pool Size", "group": "common", "label": "", "required": false,
"type": "integer", "javaType": "java.lang.Integer", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "5", "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The maximum size of the connection pool for
http connections (client only)" },
"httpConnectionPoolTtl": { "kind": "parameter", "displayName": "Http
Connection Pool Ttl", "group": "common", "label": "", "required": false,
"type": "object", "javaType": "java.time.Duration", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "15m",
"configurationClass": "org.apache.camel.component.as2.AS2Configuration",
"configurationField": "configuration", "description": "The time to live for
connections in the connection pool (client only)" },
@@ -56,17 +53,21 @@
"server": { "kind": "parameter", "displayName": "Server", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "Camel AS2 Server Endpoint", "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The value included in the Server message
header identifying the AS2 Server." },
"serverFqdn": { "kind": "parameter", "displayName": "Server Fqdn",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "camel.apache.org", "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The Server Fully Qualified Domain Name (FQDN).
Used in message ids sent by endpoint." },
"serverPortNumber": { "kind": "parameter", "displayName": "Server Port
Number", "group": "common", "label": "", "required": false, "type": "integer",
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The port number of server." },
- "signedReceiptMicAlgorithms": { "kind": "parameter", "displayName":
"Signed Receipt Mic Algorithms", "group": "common", "label": "", "required":
false, "type": "array", "javaType": "java.lang.String[]", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The list of algorithms, in order of
preference, requested to generate a message integrity check (MI [...]
- "signingAlgorithm": { "kind": "parameter", "displayName": "Signing
Algorithm", "group": "common", "label": "", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.as2.api.AS2SignatureAlgorithm", "enum": [
"SHA3_224WITHRSA", "SHA3_256WITHRSA", "SHA3_384withRSA", "SHA3_512WITHRSA",
"MD5WITHRSA", "SHA1WITHRSA", "MD2WITHRSA", "SHA224WITHRSA", "SHA256WITHRSA",
"SHA384WITHRSA", "SHA512WITHRSA", "RIPEMD128WITHRSA", "RIPEMD160WITHRSA",
"RIPEMD256WITHRSA", "SHA224WITH [...]
- "signingCertificateChain": { "kind": "parameter", "displayName": "Signing
Certificate Chain", "group": "common", "label": "", "required": false, "type":
"object", "javaType": "java.security.cert.Certificate[]", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The chain of certificates used to sign EDI
message." },
- "signingPrivateKey": { "kind": "parameter", "displayName": "Signing
Private Key", "group": "common", "label": "", "required": false, "type":
"object", "javaType": "java.security.PrivateKey", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The key used to sign the EDI message." },
"subject": { "kind": "parameter", "displayName": "Subject", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.as2.AS2Configuration",
"configurationField": "configuration", "description": "The value of Subject
header of AS2 message." },
"targetHostname": { "kind": "parameter", "displayName": "Target Hostname",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The host name (IP or DNS name) of target
host." },
- "targetPortNumber": { "kind": "parameter", "displayName": "Target Port
Number", "group": "common", "label": "", "required": false, "type": "integer",
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The port number of target host. -1 indicates
the scheme default port." },
+ "targetPortNumber": { "kind": "parameter", "displayName": "Target Port
Number", "group": "common", "label": "", "required": false, "type": "integer",
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "80", "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The port number of target host. -1 indicates
the scheme default port." },
"userAgent": { "kind": "parameter", "displayName": "User Agent", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "Camel AS2 Client Endpoint", "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The value included in the User-Agent message
header identifying the AS2 user agent." },
"exceptionHandler": { "kind": "parameter", "displayName": "Exception
Handler", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By default the
con [...]
"exchangePattern": { "kind": "parameter", "displayName": "Exchange
Pattern", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "object", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut",
"InOptionalOut" ], "deprecated": false, "autowired": false, "secret": false,
"description": "Sets the exchange pattern when the consumer creates an
exchange." },
- "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start
Producer", "group": "producer (advanced)", "label": "producer,advanced",
"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 other [...]
+ "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start
Producer", "group": "producer (advanced)", "label": "producer,advanced",
"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 other [...]
+ "decryptingPrivateKey": { "kind": "parameter", "displayName": "Decrypting
Private Key", "group": "security", "label": "security", "required": false,
"type": "object", "javaType": "java.security.PrivateKey", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The key used to encrypt the EDI message." },
+ "encryptingAlgorithm": { "kind": "parameter", "displayName": "Encrypting
Algorithm", "group": "security", "label": "security", "required": false,
"type": "object", "javaType":
"org.apache.camel.component.as2.api.AS2EncryptionAlgorithm", "enum": [
"AES128_CBC", "AES192_CBC", "AES256_CBC", "AES128_CCM", "AES192_CCM",
"AES256_CCM", "AES128_GCM", "AES192_GCM", "AES256_GCM", "CAMELLIA128_CBC",
"CAMELLIA192_CBC", "CAMELLIA256_CBC", "CAST5_CBC", "DES_CBC", "DES_EDE3_CBC",
"GOST28147_GCFB", [...]
+ "encryptingCertificateChain": { "kind": "parameter", "displayName":
"Encrypting Certificate Chain", "group": "security", "label": "security",
"required": false, "type": "object", "javaType":
"java.security.cert.Certificate[]", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The chain of certificates used to encrypt EDI
message." },
+ "signedReceiptMicAlgorithms": { "kind": "parameter", "displayName":
"Signed Receipt Mic Algorithms", "group": "security", "label": "security",
"required": false, "type": "array", "javaType": "java.lang.String[]",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The list of algorithms, in order of
preference, requested to generate a message integrity [...]
+ "signingAlgorithm": { "kind": "parameter", "displayName": "Signing
Algorithm", "group": "security", "label": "security", "required": false,
"type": "object", "javaType":
"org.apache.camel.component.as2.api.AS2SignatureAlgorithm", "enum": [
"SHA3_224WITHRSA", "SHA3_256WITHRSA", "SHA3_384withRSA", "SHA3_512WITHRSA",
"MD5WITHRSA", "SHA1WITHRSA", "MD2WITHRSA", "SHA224WITHRSA", "SHA256WITHRSA",
"SHA384WITHRSA", "SHA512WITHRSA", "RIPEMD128WITHRSA", "RIPEMD160WITHRSA",
"RIPEMD256WITHRSA", " [...]
+ "signingCertificateChain": { "kind": "parameter", "displayName": "Signing
Certificate Chain", "group": "security", "label": "security", "required":
false, "type": "object", "javaType": "java.security.cert.Certificate[]",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The chain of certificates used to sign EDI
message." },
+ "signingPrivateKey": { "kind": "parameter", "displayName": "Signing
Private Key", "group": "security", "label": "security", "required": false,
"type": "object", "javaType": "java.security.PrivateKey", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The key used to sign the EDI message." },
+ "validateSigningCertificateChain": { "kind": "parameter", "displayName":
"Validate Signing Certificate Chain", "group": "security", "label": "security",
"required": false, "type": "object", "javaType":
"java.security.cert.Certificate[]", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "Certifiates to validate the messages signature
against. If not s [...]
},
"apis": {
"client": { "consumerOnly": false, "producerOnly": true, "description":
"Sends EDI Messages over HTTP", "methods": { "send": { "description": "Send
ediMessage to trading partner", "signatures": [
"org.apache.http.protocol.HttpCoreContext send(String ediMessage, String
requestUri, String subject, String from, String as2From, String as2To,
org.apache.camel.component.as2.api.AS2MessageStructure as2MessageStructure,
org.apache.http.entity.ContentType ediMessageContentType, String ediMess [...]
diff --git
a/components/camel-as2/camel-as2-component/src/generated/java/org/apache/camel/component/as2/AS2EndpointConfigurer.java
b/components/camel-as2/camel-as2-component/src/generated/java/org/apache/camel/component/as2/AS2EndpointConfigurer.java
index 0222151dcde..6217e435990 100644
---
a/components/camel-as2/camel-as2-component/src/generated/java/org/apache/camel/component/as2/AS2EndpointConfigurer.java
+++
b/components/camel-as2/camel-as2-component/src/generated/java/org/apache/camel/component/as2/AS2EndpointConfigurer.java
@@ -29,12 +29,9 @@ public class AS2EndpointConfigurer extends
PropertyConfigurerSupport implements
map.put("attachedFileName", java.lang.String.class);
map.put("clientFqdn", java.lang.String.class);
map.put("compressionAlgorithm",
org.apache.camel.component.as2.api.AS2CompressionAlgorithm.class);
- map.put("decryptingPrivateKey", java.security.PrivateKey.class);
map.put("dispositionNotificationTo", java.lang.String.class);
map.put("ediMessageTransferEncoding", java.lang.String.class);
map.put("ediMessageType", org.apache.http.entity.ContentType.class);
- map.put("encryptingAlgorithm",
org.apache.camel.component.as2.api.AS2EncryptionAlgorithm.class);
- map.put("encryptingCertificateChain",
java.security.cert.Certificate[].class);
map.put("from", java.lang.String.class);
map.put("httpConnectionPoolSize", java.lang.Integer.class);
map.put("httpConnectionPoolTtl", java.time.Duration.class);
@@ -46,18 +43,21 @@ public class AS2EndpointConfigurer extends
PropertyConfigurerSupport implements
map.put("server", java.lang.String.class);
map.put("serverFqdn", java.lang.String.class);
map.put("serverPortNumber", java.lang.Integer.class);
- map.put("signedReceiptMicAlgorithms", java.lang.String[].class);
- map.put("signingAlgorithm",
org.apache.camel.component.as2.api.AS2SignatureAlgorithm.class);
- map.put("signingCertificateChain",
java.security.cert.Certificate[].class);
- map.put("signingPrivateKey", java.security.PrivateKey.class);
map.put("subject", java.lang.String.class);
map.put("targetHostname", java.lang.String.class);
map.put("targetPortNumber", java.lang.Integer.class);
map.put("userAgent", java.lang.String.class);
- map.put("validateSigningCertificateChain",
java.security.cert.Certificate[].class);
map.put("exceptionHandler",
org.apache.camel.spi.ExceptionHandler.class);
map.put("exchangePattern", org.apache.camel.ExchangePattern.class);
map.put("lazyStartProducer", boolean.class);
+ map.put("decryptingPrivateKey", java.security.PrivateKey.class);
+ map.put("encryptingAlgorithm",
org.apache.camel.component.as2.api.AS2EncryptionAlgorithm.class);
+ map.put("encryptingCertificateChain",
java.security.cert.Certificate[].class);
+ map.put("signedReceiptMicAlgorithms", java.lang.String[].class);
+ map.put("signingAlgorithm",
org.apache.camel.component.as2.api.AS2SignatureAlgorithm.class);
+ map.put("signingCertificateChain",
java.security.cert.Certificate[].class);
+ map.put("signingPrivateKey", java.security.PrivateKey.class);
+ map.put("validateSigningCertificateChain",
java.security.cert.Certificate[].class);
ALL_OPTIONS = map;
}
diff --git
a/components/camel-as2/camel-as2-component/src/generated/resources/org/apache/camel/component/as2/as2.json
b/components/camel-as2/camel-as2-component/src/generated/resources/org/apache/camel/component/as2/as2.json
index d1e8b4de975..2467979125d 100644
---
a/components/camel-as2/camel-as2-component/src/generated/resources/org/apache/camel/component/as2/as2.json
+++
b/components/camel-as2/camel-as2-component/src/generated/resources/org/apache/camel/component/as2/as2.json
@@ -39,12 +39,9 @@
"attachedFileName": { "kind": "parameter", "displayName": "Attached File
Name", "group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The name of the attached file" },
"clientFqdn": { "kind": "parameter", "displayName": "Client Fqdn",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "camel.apache.org", "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The Client Fully Qualified Domain Name (FQDN).
Used in message ids sent by endpoint." },
"compressionAlgorithm": { "kind": "parameter", "displayName": "Compression
Algorithm", "group": "common", "label": "", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.as2.api.AS2CompressionAlgorithm", "enum": [ "ZLIB"
], "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.as2.AS2Configuration",
"configurationField": "configuration", "description": "The algorithm used to
compress EDI message." },
- "decryptingPrivateKey": { "kind": "parameter", "displayName": "Decrypting
Private Key", "group": "common", "label": "", "required": false, "type":
"object", "javaType": "java.security.PrivateKey", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The key used to encrypt the EDI message." },
"dispositionNotificationTo": { "kind": "parameter", "displayName":
"Disposition Notification To", "group": "common", "label": "", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The value of the Disposition-Notification-To
header. Assigning a value to this parameter requests a mes [...]
"ediMessageTransferEncoding": { "kind": "parameter", "displayName": "Edi
Message Transfer Encoding", "group": "common", "label": "", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The transfer encoding of EDI message." },
"ediMessageType": { "kind": "parameter", "displayName": "Edi Message
Type", "group": "common", "label": "", "required": false, "type": "object",
"javaType": "org.apache.http.entity.ContentType", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The content type of EDI message. One of
application\/edifact, application\/edi-x12, application\/edi-consent" },
- "encryptingAlgorithm": { "kind": "parameter", "displayName": "Encrypting
Algorithm", "group": "common", "label": "", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.as2.api.AS2EncryptionAlgorithm", "enum": [
"AES128_CBC", "AES192_CBC", "AES256_CBC", "AES128_CCM", "AES192_CCM",
"AES256_CCM", "AES128_GCM", "AES192_GCM", "AES256_GCM", "CAMELLIA128_CBC",
"CAMELLIA192_CBC", "CAMELLIA256_CBC", "CAST5_CBC", "DES_CBC", "DES_EDE3_CBC",
"GOST28147_GCFB", "IDEA_CBC" [...]
- "encryptingCertificateChain": { "kind": "parameter", "displayName":
"Encrypting Certificate Chain", "group": "common", "label": "", "required":
false, "type": "object", "javaType": "java.security.cert.Certificate[]",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The chain of certificates used to encrypt EDI
message." },
"from": { "kind": "parameter", "displayName": "From", "group": "common",
"label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.as2.AS2Configuration",
"configurationField": "configuration", "description": "The value of the From
header of AS2 message." },
"httpConnectionPoolSize": { "kind": "parameter", "displayName": "Http
Connection Pool Size", "group": "common", "label": "", "required": false,
"type": "integer", "javaType": "java.lang.Integer", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "5", "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The maximum size of the connection pool for
http connections (client only)" },
"httpConnectionPoolTtl": { "kind": "parameter", "displayName": "Http
Connection Pool Ttl", "group": "common", "label": "", "required": false,
"type": "object", "javaType": "java.time.Duration", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "15m",
"configurationClass": "org.apache.camel.component.as2.AS2Configuration",
"configurationField": "configuration", "description": "The time to live for
connections in the connection pool (client only)" },
@@ -56,18 +53,21 @@
"server": { "kind": "parameter", "displayName": "Server", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "Camel AS2 Server Endpoint", "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The value included in the Server message
header identifying the AS2 Server." },
"serverFqdn": { "kind": "parameter", "displayName": "Server Fqdn",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "camel.apache.org", "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The Server Fully Qualified Domain Name (FQDN).
Used in message ids sent by endpoint." },
"serverPortNumber": { "kind": "parameter", "displayName": "Server Port
Number", "group": "common", "label": "", "required": false, "type": "integer",
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The port number of server." },
- "signedReceiptMicAlgorithms": { "kind": "parameter", "displayName":
"Signed Receipt Mic Algorithms", "group": "common", "label": "", "required":
false, "type": "array", "javaType": "java.lang.String[]", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The list of algorithms, in order of
preference, requested to generate a message integrity check (MI [...]
- "signingAlgorithm": { "kind": "parameter", "displayName": "Signing
Algorithm", "group": "common", "label": "", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.as2.api.AS2SignatureAlgorithm", "enum": [
"SHA3_224WITHRSA", "SHA3_256WITHRSA", "SHA3_384withRSA", "SHA3_512WITHRSA",
"MD5WITHRSA", "SHA1WITHRSA", "MD2WITHRSA", "SHA224WITHRSA", "SHA256WITHRSA",
"SHA384WITHRSA", "SHA512WITHRSA", "RIPEMD128WITHRSA", "RIPEMD160WITHRSA",
"RIPEMD256WITHRSA", "SHA224WITH [...]
- "signingCertificateChain": { "kind": "parameter", "displayName": "Signing
Certificate Chain", "group": "common", "label": "", "required": false, "type":
"object", "javaType": "java.security.cert.Certificate[]", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The chain of certificates used to sign EDI
message." },
- "signingPrivateKey": { "kind": "parameter", "displayName": "Signing
Private Key", "group": "common", "label": "", "required": false, "type":
"object", "javaType": "java.security.PrivateKey", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The key used to sign the EDI message." },
"subject": { "kind": "parameter", "displayName": "Subject", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.as2.AS2Configuration",
"configurationField": "configuration", "description": "The value of Subject
header of AS2 message." },
"targetHostname": { "kind": "parameter", "displayName": "Target Hostname",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The host name (IP or DNS name) of target
host." },
- "targetPortNumber": { "kind": "parameter", "displayName": "Target Port
Number", "group": "common", "label": "", "required": false, "type": "integer",
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The port number of target host. -1 indicates
the scheme default port." },
+ "targetPortNumber": { "kind": "parameter", "displayName": "Target Port
Number", "group": "common", "label": "", "required": false, "type": "integer",
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "80", "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The port number of target host. -1 indicates
the scheme default port." },
"userAgent": { "kind": "parameter", "displayName": "User Agent", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "Camel AS2 Client Endpoint", "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The value included in the User-Agent message
header identifying the AS2 user agent." },
- "validateSigningCertificateChain": { "kind": "parameter", "displayName":
"Validate Signing Certificate Chain", "group": "common", "label": "",
"required": false, "type": "object", "javaType":
"java.security.cert.Certificate[]", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "Certifiates to validate the messages signature
against. If not supplied, v [...]
"exceptionHandler": { "kind": "parameter", "displayName": "Exception
Handler", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By default the
con [...]
"exchangePattern": { "kind": "parameter", "displayName": "Exchange
Pattern", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "object", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut",
"InOptionalOut" ], "deprecated": false, "autowired": false, "secret": false,
"description": "Sets the exchange pattern when the consumer creates an
exchange." },
- "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start
Producer", "group": "producer (advanced)", "label": "producer,advanced",
"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 other [...]
+ "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start
Producer", "group": "producer (advanced)", "label": "producer,advanced",
"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 other [...]
+ "decryptingPrivateKey": { "kind": "parameter", "displayName": "Decrypting
Private Key", "group": "security", "label": "security", "required": false,
"type": "object", "javaType": "java.security.PrivateKey", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The key used to encrypt the EDI message." },
+ "encryptingAlgorithm": { "kind": "parameter", "displayName": "Encrypting
Algorithm", "group": "security", "label": "security", "required": false,
"type": "object", "javaType":
"org.apache.camel.component.as2.api.AS2EncryptionAlgorithm", "enum": [
"AES128_CBC", "AES192_CBC", "AES256_CBC", "AES128_CCM", "AES192_CCM",
"AES256_CCM", "AES128_GCM", "AES192_GCM", "AES256_GCM", "CAMELLIA128_CBC",
"CAMELLIA192_CBC", "CAMELLIA256_CBC", "CAST5_CBC", "DES_CBC", "DES_EDE3_CBC",
"GOST28147_GCFB", [...]
+ "encryptingCertificateChain": { "kind": "parameter", "displayName":
"Encrypting Certificate Chain", "group": "security", "label": "security",
"required": false, "type": "object", "javaType":
"java.security.cert.Certificate[]", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The chain of certificates used to encrypt EDI
message." },
+ "signedReceiptMicAlgorithms": { "kind": "parameter", "displayName":
"Signed Receipt Mic Algorithms", "group": "security", "label": "security",
"required": false, "type": "array", "javaType": "java.lang.String[]",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The list of algorithms, in order of
preference, requested to generate a message integrity [...]
+ "signingAlgorithm": { "kind": "parameter", "displayName": "Signing
Algorithm", "group": "security", "label": "security", "required": false,
"type": "object", "javaType":
"org.apache.camel.component.as2.api.AS2SignatureAlgorithm", "enum": [
"SHA3_224WITHRSA", "SHA3_256WITHRSA", "SHA3_384withRSA", "SHA3_512WITHRSA",
"MD5WITHRSA", "SHA1WITHRSA", "MD2WITHRSA", "SHA224WITHRSA", "SHA256WITHRSA",
"SHA384WITHRSA", "SHA512WITHRSA", "RIPEMD128WITHRSA", "RIPEMD160WITHRSA",
"RIPEMD256WITHRSA", " [...]
+ "signingCertificateChain": { "kind": "parameter", "displayName": "Signing
Certificate Chain", "group": "security", "label": "security", "required":
false, "type": "object", "javaType": "java.security.cert.Certificate[]",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The chain of certificates used to sign EDI
message." },
+ "signingPrivateKey": { "kind": "parameter", "displayName": "Signing
Private Key", "group": "security", "label": "security", "required": false,
"type": "object", "javaType": "java.security.PrivateKey", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "The key used to sign the EDI message." },
+ "validateSigningCertificateChain": { "kind": "parameter", "displayName":
"Validate Signing Certificate Chain", "group": "security", "label": "security",
"required": false, "type": "object", "javaType":
"java.security.cert.Certificate[]", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.as2.AS2Configuration", "configurationField":
"configuration", "description": "Certifiates to validate the messages signature
against. If not s [...]
},
"apis": {
"client": { "consumerOnly": false, "producerOnly": true, "description":
"Sends EDI Messages over HTTP", "methods": { "send": { "description": "Send
ediMessage to trading partner", "signatures": [
"org.apache.http.protocol.HttpCoreContext send(String ediMessage, String
requestUri, String subject, String from, String as2From, String as2To,
org.apache.camel.component.as2.api.AS2MessageStructure as2MessageStructure,
org.apache.http.entity.ContentType ediMessageContentType, String ediMess [...]
diff --git
a/components/camel-as2/camel-as2-component/src/main/java/org/apache/camel/component/as2/AS2Configuration.java
b/components/camel-as2/camel-as2-component/src/main/java/org/apache/camel/component/as2/AS2Configuration.java
index aa01c91687c..8159df12423 100644
---
a/components/camel-as2/camel-as2-component/src/main/java/org/apache/camel/component/as2/AS2Configuration.java
+++
b/components/camel-as2/camel-as2-component/src/main/java/org/apache/camel/component/as2/AS2Configuration.java
@@ -56,7 +56,7 @@ public class AS2Configuration {
private String serverFqdn = "camel.apache.org";
@UriParam
private String targetHostname;
- @UriParam
+ @UriParam(defaultValue = "80")
private Integer targetPortNumber = 80;
@UriParam(defaultValue = "camel.apache.org")
private String clientFqdn = "camel.apache.org";
@@ -78,23 +78,23 @@ public class AS2Configuration {
private String as2From;
@UriParam
private String as2To;
- @UriParam
+ @UriParam(label = "security")
private AS2SignatureAlgorithm signingAlgorithm;
- @UriParam
+ @UriParam(label = "security")
private Certificate[] signingCertificateChain;
- @UriParam
+ @UriParam(label = "security")
private PrivateKey signingPrivateKey;
@UriParam
private AS2CompressionAlgorithm compressionAlgorithm;
@UriParam
private String dispositionNotificationTo;
- @UriParam
+ @UriParam(label = "security")
private String[] signedReceiptMicAlgorithms;
- @UriParam
+ @UriParam(label = "security")
private AS2EncryptionAlgorithm encryptingAlgorithm;
- @UriParam
+ @UriParam(label = "security")
private Certificate[] encryptingCertificateChain;
- @UriParam
+ @UriParam(label = "security")
private PrivateKey decryptingPrivateKey;
@UriParam
private String mdnMessageTemplate;
@@ -108,7 +108,7 @@ public class AS2Configuration {
private Integer httpConnectionPoolSize = 5;
@UriParam(defaultValue = "15m")
private Duration httpConnectionPoolTtl = Duration.ofMinutes(15);
- @UriParam
+ @UriParam(label = "security")
private Certificate[] validateSigningCertificateChain;
public AS2ApiName getApiName() {
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AS2EndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AS2EndpointBuilderFactory.java
index 7173e8dd63f..0e4765d8b13 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AS2EndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AS2EndpointBuilderFactory.java
@@ -185,38 +185,6 @@ public interface AS2EndpointBuilderFactory {
doSetProperty("compressionAlgorithm", compressionAlgorithm);
return this;
}
- /**
- * The key used to encrypt the EDI message.
- *
- * The option is a: <code>java.security.PrivateKey</code>
- * type.
- *
- * Group: common
- *
- * @param decryptingPrivateKey the value to set
- * @return the dsl builder
- */
- default AS2EndpointConsumerBuilder decryptingPrivateKey(
- java.security.PrivateKey decryptingPrivateKey) {
- doSetProperty("decryptingPrivateKey", decryptingPrivateKey);
- return this;
- }
- /**
- * The key used to encrypt the EDI message.
- *
- * The option will be converted to a
- * <code>java.security.PrivateKey</code> type.
- *
- * Group: common
- *
- * @param decryptingPrivateKey the value to set
- * @return the dsl builder
- */
- default AS2EndpointConsumerBuilder decryptingPrivateKey(
- String decryptingPrivateKey) {
- doSetProperty("decryptingPrivateKey", decryptingPrivateKey);
- return this;
- }
/**
* The value of the Disposition-Notification-To header. Assigning a
* value to this parameter requests a message disposition notification
@@ -282,70 +250,6 @@ public interface AS2EndpointBuilderFactory {
doSetProperty("ediMessageType", ediMessageType);
return this;
}
- /**
- * The algorithm used to encrypt EDI message.
- *
- * The option is a:
- *
<code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code>
type.
- *
- * Group: common
- *
- * @param encryptingAlgorithm the value to set
- * @return the dsl builder
- */
- default AS2EndpointConsumerBuilder encryptingAlgorithm(
- org.apache.camel.component.as2.api.AS2EncryptionAlgorithm
encryptingAlgorithm) {
- doSetProperty("encryptingAlgorithm", encryptingAlgorithm);
- return this;
- }
- /**
- * The algorithm used to encrypt EDI message.
- *
- * The option will be converted to a
- *
<code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code>
type.
- *
- * Group: common
- *
- * @param encryptingAlgorithm the value to set
- * @return the dsl builder
- */
- default AS2EndpointConsumerBuilder encryptingAlgorithm(
- String encryptingAlgorithm) {
- doSetProperty("encryptingAlgorithm", encryptingAlgorithm);
- return this;
- }
- /**
- * The chain of certificates used to encrypt EDI message.
- *
- * The option is a:
- * <code>java.security.cert.Certificate[]</code> type.
- *
- * Group: common
- *
- * @param encryptingCertificateChain the value to set
- * @return the dsl builder
- */
- default AS2EndpointConsumerBuilder encryptingCertificateChain(
- java.security.cert.Certificate[] encryptingCertificateChain) {
- doSetProperty("encryptingCertificateChain",
encryptingCertificateChain);
- return this;
- }
- /**
- * The chain of certificates used to encrypt EDI message.
- *
- * The option will be converted to a
- * <code>java.security.cert.Certificate[]</code> type.
- *
- * Group: common
- *
- * @param encryptingCertificateChain the value to set
- * @return the dsl builder
- */
- default AS2EndpointConsumerBuilder encryptingCertificateChain(
- String encryptingCertificateChain) {
- doSetProperty("encryptingCertificateChain",
encryptingCertificateChain);
- return this;
- }
/**
* The value of the From header of AS2 message.
*
@@ -604,209 +508,345 @@ public interface AS2EndpointBuilderFactory {
return this;
}
/**
- * The list of algorithms, in order of preference, requested to
generate
- * a message integrity check (MIC) returned in message dispostion
- * notification (MDN).
+ * The value of Subject header of AS2 message.
*
- * The option is a: <code>java.lang.String[]</code> type.
+ * The option is a: <code>java.lang.String</code> type.
*
* Group: common
*
- * @param signedReceiptMicAlgorithms the value to set
+ * @param subject the value to set
* @return the dsl builder
*/
- default AS2EndpointConsumerBuilder signedReceiptMicAlgorithms(
- String[] signedReceiptMicAlgorithms) {
- doSetProperty("signedReceiptMicAlgorithms",
signedReceiptMicAlgorithms);
+ default AS2EndpointConsumerBuilder subject(String subject) {
+ doSetProperty("subject", subject);
return this;
}
/**
- * The list of algorithms, in order of preference, requested to
generate
- * a message integrity check (MIC) returned in message dispostion
- * notification (MDN).
+ * The host name (IP or DNS name) of target host.
*
- * The option will be converted to a
- * <code>java.lang.String[]</code> type.
+ * The option is a: <code>java.lang.String</code> type.
*
* Group: common
*
- * @param signedReceiptMicAlgorithms the value to set
+ * @param targetHostname the value to set
* @return the dsl builder
*/
- default AS2EndpointConsumerBuilder signedReceiptMicAlgorithms(
- String signedReceiptMicAlgorithms) {
- doSetProperty("signedReceiptMicAlgorithms",
signedReceiptMicAlgorithms);
+ default AS2EndpointConsumerBuilder targetHostname(String
targetHostname) {
+ doSetProperty("targetHostname", targetHostname);
return this;
}
/**
- * The algorithm used to sign EDI message.
+ * The port number of target host. -1 indicates the scheme default
port.
*
- * The option is a:
- *
<code>org.apache.camel.component.as2.api.AS2SignatureAlgorithm</code>
type.
+ * The option is a: <code>java.lang.Integer</code> type.
*
+ * Default: 80
* Group: common
*
- * @param signingAlgorithm the value to set
+ * @param targetPortNumber the value to set
* @return the dsl builder
*/
- default AS2EndpointConsumerBuilder signingAlgorithm(
- org.apache.camel.component.as2.api.AS2SignatureAlgorithm
signingAlgorithm) {
- doSetProperty("signingAlgorithm", signingAlgorithm);
+ default AS2EndpointConsumerBuilder targetPortNumber(
+ Integer targetPortNumber) {
+ doSetProperty("targetPortNumber", targetPortNumber);
return this;
}
/**
- * The algorithm used to sign EDI message.
+ * The port number of target host. -1 indicates the scheme default
port.
*
* The option will be converted to a
- *
<code>org.apache.camel.component.as2.api.AS2SignatureAlgorithm</code>
type.
- *
- * Group: common
- *
- * @param signingAlgorithm the value to set
- * @return the dsl builder
- */
- default AS2EndpointConsumerBuilder signingAlgorithm(
- String signingAlgorithm) {
- doSetProperty("signingAlgorithm", signingAlgorithm);
- return this;
- }
- /**
- * The chain of certificates used to sign EDI message.
- *
- * The option is a:
- * <code>java.security.cert.Certificate[]</code> type.
+ * <code>java.lang.Integer</code> type.
*
+ * Default: 80
* Group: common
*
- * @param signingCertificateChain the value to set
+ * @param targetPortNumber the value to set
* @return the dsl builder
*/
- default AS2EndpointConsumerBuilder signingCertificateChain(
- java.security.cert.Certificate[] signingCertificateChain) {
- doSetProperty("signingCertificateChain", signingCertificateChain);
+ default AS2EndpointConsumerBuilder targetPortNumber(
+ String targetPortNumber) {
+ doSetProperty("targetPortNumber", targetPortNumber);
return this;
}
/**
- * The chain of certificates used to sign EDI message.
+ * The value included in the User-Agent message header identifying the
+ * AS2 user agent.
*
- * The option will be converted to a
- * <code>java.security.cert.Certificate[]</code> type.
+ * The option is a: <code>java.lang.String</code> type.
*
+ * Default: Camel AS2 Client Endpoint
* Group: common
*
- * @param signingCertificateChain the value to set
+ * @param userAgent the value to set
* @return the dsl builder
*/
- default AS2EndpointConsumerBuilder signingCertificateChain(
- String signingCertificateChain) {
- doSetProperty("signingCertificateChain", signingCertificateChain);
+ default AS2EndpointConsumerBuilder userAgent(String userAgent) {
+ doSetProperty("userAgent", userAgent);
return this;
}
/**
- * The key used to sign the EDI message.
+ * The key used to encrypt the EDI message.
*
* The option is a: <code>java.security.PrivateKey</code>
* type.
*
- * Group: common
+ * Group: security
*
- * @param signingPrivateKey the value to set
+ * @param decryptingPrivateKey the value to set
* @return the dsl builder
*/
- default AS2EndpointConsumerBuilder signingPrivateKey(
- java.security.PrivateKey signingPrivateKey) {
- doSetProperty("signingPrivateKey", signingPrivateKey);
+ default AS2EndpointConsumerBuilder decryptingPrivateKey(
+ java.security.PrivateKey decryptingPrivateKey) {
+ doSetProperty("decryptingPrivateKey", decryptingPrivateKey);
return this;
}
/**
- * The key used to sign the EDI message.
+ * The key used to encrypt the EDI message.
*
* The option will be converted to a
* <code>java.security.PrivateKey</code> type.
*
- * Group: common
+ * Group: security
*
- * @param signingPrivateKey the value to set
+ * @param decryptingPrivateKey the value to set
* @return the dsl builder
*/
- default AS2EndpointConsumerBuilder signingPrivateKey(
- String signingPrivateKey) {
- doSetProperty("signingPrivateKey", signingPrivateKey);
+ default AS2EndpointConsumerBuilder decryptingPrivateKey(
+ String decryptingPrivateKey) {
+ doSetProperty("decryptingPrivateKey", decryptingPrivateKey);
return this;
}
/**
- * The value of Subject header of AS2 message.
+ * The algorithm used to encrypt EDI message.
*
- * The option is a: <code>java.lang.String</code> type.
+ * The option is a:
+ *
<code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code>
type.
*
- * Group: common
+ * Group: security
*
- * @param subject the value to set
+ * @param encryptingAlgorithm the value to set
* @return the dsl builder
*/
- default AS2EndpointConsumerBuilder subject(String subject) {
- doSetProperty("subject", subject);
+ default AS2EndpointConsumerBuilder encryptingAlgorithm(
+ org.apache.camel.component.as2.api.AS2EncryptionAlgorithm
encryptingAlgorithm) {
+ doSetProperty("encryptingAlgorithm", encryptingAlgorithm);
return this;
}
/**
- * The host name (IP or DNS name) of target host.
+ * The algorithm used to encrypt EDI message.
*
- * The option is a: <code>java.lang.String</code> type.
+ * The option will be converted to a
+ *
<code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code>
type.
*
- * Group: common
+ * Group: security
*
- * @param targetHostname the value to set
+ * @param encryptingAlgorithm the value to set
* @return the dsl builder
*/
- default AS2EndpointConsumerBuilder targetHostname(String
targetHostname) {
- doSetProperty("targetHostname", targetHostname);
+ default AS2EndpointConsumerBuilder encryptingAlgorithm(
+ String encryptingAlgorithm) {
+ doSetProperty("encryptingAlgorithm", encryptingAlgorithm);
return this;
}
/**
- * The port number of target host. -1 indicates the scheme default
port.
+ * The chain of certificates used to encrypt EDI message.
*
- * The option is a: <code>java.lang.Integer</code> type.
+ * The option is a:
+ * <code>java.security.cert.Certificate[]</code> type.
*
- * Group: common
+ * Group: security
*
- * @param targetPortNumber the value to set
+ * @param encryptingCertificateChain the value to set
* @return the dsl builder
*/
- default AS2EndpointConsumerBuilder targetPortNumber(
- Integer targetPortNumber) {
- doSetProperty("targetPortNumber", targetPortNumber);
+ default AS2EndpointConsumerBuilder encryptingCertificateChain(
+ java.security.cert.Certificate[] encryptingCertificateChain) {
+ doSetProperty("encryptingCertificateChain",
encryptingCertificateChain);
return this;
}
/**
- * The port number of target host. -1 indicates the scheme default
port.
+ * The chain of certificates used to encrypt EDI message.
*
* The option will be converted to a
- * <code>java.lang.Integer</code> type.
+ * <code>java.security.cert.Certificate[]</code> type.
*
- * Group: common
+ * Group: security
*
- * @param targetPortNumber the value to set
+ * @param encryptingCertificateChain the value to set
* @return the dsl builder
*/
- default AS2EndpointConsumerBuilder targetPortNumber(
- String targetPortNumber) {
- doSetProperty("targetPortNumber", targetPortNumber);
+ default AS2EndpointConsumerBuilder encryptingCertificateChain(
+ String encryptingCertificateChain) {
+ doSetProperty("encryptingCertificateChain",
encryptingCertificateChain);
return this;
}
/**
- * The value included in the User-Agent message header identifying the
- * AS2 user agent.
- *
- * The option is a: <code>java.lang.String</code> type.
+ * The list of algorithms, in order of preference, requested to
generate
+ * a message integrity check (MIC) returned in message dispostion
+ * notification (MDN).
*
- * Default: Camel AS2 Client Endpoint
- * Group: common
+ * The option is a: <code>java.lang.String[]</code> type.
*
- * @param userAgent the value to set
+ * Group: security
+ *
+ * @param signedReceiptMicAlgorithms the value to set
* @return the dsl builder
*/
- default AS2EndpointConsumerBuilder userAgent(String userAgent) {
- doSetProperty("userAgent", userAgent);
+ default AS2EndpointConsumerBuilder signedReceiptMicAlgorithms(
+ String[] signedReceiptMicAlgorithms) {
+ doSetProperty("signedReceiptMicAlgorithms",
signedReceiptMicAlgorithms);
+ return this;
+ }
+ /**
+ * The list of algorithms, in order of preference, requested to
generate
+ * a message integrity check (MIC) returned in message dispostion
+ * notification (MDN).
+ *
+ * The option will be converted to a
+ * <code>java.lang.String[]</code> type.
+ *
+ * Group: security
+ *
+ * @param signedReceiptMicAlgorithms the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointConsumerBuilder signedReceiptMicAlgorithms(
+ String signedReceiptMicAlgorithms) {
+ doSetProperty("signedReceiptMicAlgorithms",
signedReceiptMicAlgorithms);
+ return this;
+ }
+ /**
+ * The algorithm used to sign EDI message.
+ *
+ * The option is a:
+ *
<code>org.apache.camel.component.as2.api.AS2SignatureAlgorithm</code>
type.
+ *
+ * Group: security
+ *
+ * @param signingAlgorithm the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointConsumerBuilder signingAlgorithm(
+ org.apache.camel.component.as2.api.AS2SignatureAlgorithm
signingAlgorithm) {
+ doSetProperty("signingAlgorithm", signingAlgorithm);
+ return this;
+ }
+ /**
+ * The algorithm used to sign EDI message.
+ *
+ * The option will be converted to a
+ *
<code>org.apache.camel.component.as2.api.AS2SignatureAlgorithm</code>
type.
+ *
+ * Group: security
+ *
+ * @param signingAlgorithm the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointConsumerBuilder signingAlgorithm(
+ String signingAlgorithm) {
+ doSetProperty("signingAlgorithm", signingAlgorithm);
+ return this;
+ }
+ /**
+ * The chain of certificates used to sign EDI message.
+ *
+ * The option is a:
+ * <code>java.security.cert.Certificate[]</code> type.
+ *
+ * Group: security
+ *
+ * @param signingCertificateChain the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointConsumerBuilder signingCertificateChain(
+ java.security.cert.Certificate[] signingCertificateChain) {
+ doSetProperty("signingCertificateChain", signingCertificateChain);
+ return this;
+ }
+ /**
+ * The chain of certificates used to sign EDI message.
+ *
+ * The option will be converted to a
+ * <code>java.security.cert.Certificate[]</code> type.
+ *
+ * Group: security
+ *
+ * @param signingCertificateChain the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointConsumerBuilder signingCertificateChain(
+ String signingCertificateChain) {
+ doSetProperty("signingCertificateChain", signingCertificateChain);
+ return this;
+ }
+ /**
+ * The key used to sign the EDI message.
+ *
+ * The option is a: <code>java.security.PrivateKey</code>
+ * type.
+ *
+ * Group: security
+ *
+ * @param signingPrivateKey the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointConsumerBuilder signingPrivateKey(
+ java.security.PrivateKey signingPrivateKey) {
+ doSetProperty("signingPrivateKey", signingPrivateKey);
+ return this;
+ }
+ /**
+ * The key used to sign the EDI message.
+ *
+ * The option will be converted to a
+ * <code>java.security.PrivateKey</code> type.
+ *
+ * Group: security
+ *
+ * @param signingPrivateKey the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointConsumerBuilder signingPrivateKey(
+ String signingPrivateKey) {
+ doSetProperty("signingPrivateKey", signingPrivateKey);
+ return this;
+ }
+ /**
+ * Certifiates to validate the messages signature against. If not
+ * supplied, validation will not take place. Server: validates the
+ * received message. Client: not yet implemented, should validate the
+ * MDN.
+ *
+ * The option is a:
+ * <code>java.security.cert.Certificate[]</code> type.
+ *
+ * Group: security
+ *
+ * @param validateSigningCertificateChain the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointConsumerBuilder validateSigningCertificateChain(
+ java.security.cert.Certificate[]
validateSigningCertificateChain) {
+ doSetProperty("validateSigningCertificateChain",
validateSigningCertificateChain);
+ return this;
+ }
+ /**
+ * Certifiates to validate the messages signature against. If not
+ * supplied, validation will not take place. Server: validates the
+ * received message. Client: not yet implemented, should validate the
+ * MDN.
+ *
+ * The option will be converted to a
+ * <code>java.security.cert.Certificate[]</code> type.
+ *
+ * Group: security
+ *
+ * @param validateSigningCertificateChain the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointConsumerBuilder validateSigningCertificateChain(
+ String validateSigningCertificateChain) {
+ doSetProperty("validateSigningCertificateChain",
validateSigningCertificateChain);
return this;
}
}
@@ -1043,38 +1083,6 @@ public interface AS2EndpointBuilderFactory {
doSetProperty("compressionAlgorithm", compressionAlgorithm);
return this;
}
- /**
- * The key used to encrypt the EDI message.
- *
- * The option is a: <code>java.security.PrivateKey</code>
- * type.
- *
- * Group: common
- *
- * @param decryptingPrivateKey the value to set
- * @return the dsl builder
- */
- default AS2EndpointProducerBuilder decryptingPrivateKey(
- java.security.PrivateKey decryptingPrivateKey) {
- doSetProperty("decryptingPrivateKey", decryptingPrivateKey);
- return this;
- }
- /**
- * The key used to encrypt the EDI message.
- *
- * The option will be converted to a
- * <code>java.security.PrivateKey</code> type.
- *
- * Group: common
- *
- * @param decryptingPrivateKey the value to set
- * @return the dsl builder
- */
- default AS2EndpointProducerBuilder decryptingPrivateKey(
- String decryptingPrivateKey) {
- doSetProperty("decryptingPrivateKey", decryptingPrivateKey);
- return this;
- }
/**
* The value of the Disposition-Notification-To header. Assigning a
* value to this parameter requests a message disposition notification
@@ -1140,70 +1148,6 @@ public interface AS2EndpointBuilderFactory {
doSetProperty("ediMessageType", ediMessageType);
return this;
}
- /**
- * The algorithm used to encrypt EDI message.
- *
- * The option is a:
- *
<code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code>
type.
- *
- * Group: common
- *
- * @param encryptingAlgorithm the value to set
- * @return the dsl builder
- */
- default AS2EndpointProducerBuilder encryptingAlgorithm(
- org.apache.camel.component.as2.api.AS2EncryptionAlgorithm
encryptingAlgorithm) {
- doSetProperty("encryptingAlgorithm", encryptingAlgorithm);
- return this;
- }
- /**
- * The algorithm used to encrypt EDI message.
- *
- * The option will be converted to a
- *
<code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code>
type.
- *
- * Group: common
- *
- * @param encryptingAlgorithm the value to set
- * @return the dsl builder
- */
- default AS2EndpointProducerBuilder encryptingAlgorithm(
- String encryptingAlgorithm) {
- doSetProperty("encryptingAlgorithm", encryptingAlgorithm);
- return this;
- }
- /**
- * The chain of certificates used to encrypt EDI message.
- *
- * The option is a:
- * <code>java.security.cert.Certificate[]</code> type.
- *
- * Group: common
- *
- * @param encryptingCertificateChain the value to set
- * @return the dsl builder
- */
- default AS2EndpointProducerBuilder encryptingCertificateChain(
- java.security.cert.Certificate[] encryptingCertificateChain) {
- doSetProperty("encryptingCertificateChain",
encryptingCertificateChain);
- return this;
- }
- /**
- * The chain of certificates used to encrypt EDI message.
- *
- * The option will be converted to a
- * <code>java.security.cert.Certificate[]</code> type.
- *
- * Group: common
- *
- * @param encryptingCertificateChain the value to set
- * @return the dsl builder
- */
- default AS2EndpointProducerBuilder encryptingCertificateChain(
- String encryptingCertificateChain) {
- doSetProperty("encryptingCertificateChain",
encryptingCertificateChain);
- return this;
- }
/**
* The value of the From header of AS2 message.
*
@@ -1462,32 +1406,205 @@ public interface AS2EndpointBuilderFactory {
return this;
}
/**
- * The list of algorithms, in order of preference, requested to
generate
- * a message integrity check (MIC) returned in message dispostion
- * notification (MDN).
+ * The value of Subject header of AS2 message.
*
- * The option is a: <code>java.lang.String[]</code> type.
+ * The option is a: <code>java.lang.String</code> type.
*
* Group: common
*
- * @param signedReceiptMicAlgorithms the value to set
+ * @param subject the value to set
* @return the dsl builder
*/
- default AS2EndpointProducerBuilder signedReceiptMicAlgorithms(
- String[] signedReceiptMicAlgorithms) {
- doSetProperty("signedReceiptMicAlgorithms",
signedReceiptMicAlgorithms);
+ default AS2EndpointProducerBuilder subject(String subject) {
+ doSetProperty("subject", subject);
return this;
}
/**
- * The list of algorithms, in order of preference, requested to
generate
- * a message integrity check (MIC) returned in message dispostion
- * notification (MDN).
+ * The host name (IP or DNS name) of target host.
*
- * The option will be converted to a
- * <code>java.lang.String[]</code> type.
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: common
+ *
+ * @param targetHostname the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointProducerBuilder targetHostname(String
targetHostname) {
+ doSetProperty("targetHostname", targetHostname);
+ return this;
+ }
+ /**
+ * The port number of target host. -1 indicates the scheme default
port.
+ *
+ * The option is a: <code>java.lang.Integer</code> type.
+ *
+ * Default: 80
+ * Group: common
+ *
+ * @param targetPortNumber the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointProducerBuilder targetPortNumber(
+ Integer targetPortNumber) {
+ doSetProperty("targetPortNumber", targetPortNumber);
+ return this;
+ }
+ /**
+ * The port number of target host. -1 indicates the scheme default
port.
+ *
+ * The option will be converted to a
+ * <code>java.lang.Integer</code> type.
+ *
+ * Default: 80
+ * Group: common
+ *
+ * @param targetPortNumber the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointProducerBuilder targetPortNumber(
+ String targetPortNumber) {
+ doSetProperty("targetPortNumber", targetPortNumber);
+ return this;
+ }
+ /**
+ * The value included in the User-Agent message header identifying the
+ * AS2 user agent.
+ *
+ * The option is a: <code>java.lang.String</code> type.
*
+ * Default: Camel AS2 Client Endpoint
* Group: common
*
+ * @param userAgent the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointProducerBuilder userAgent(String userAgent) {
+ doSetProperty("userAgent", userAgent);
+ return this;
+ }
+ /**
+ * The key used to encrypt the EDI message.
+ *
+ * The option is a: <code>java.security.PrivateKey</code>
+ * type.
+ *
+ * Group: security
+ *
+ * @param decryptingPrivateKey the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointProducerBuilder decryptingPrivateKey(
+ java.security.PrivateKey decryptingPrivateKey) {
+ doSetProperty("decryptingPrivateKey", decryptingPrivateKey);
+ return this;
+ }
+ /**
+ * The key used to encrypt the EDI message.
+ *
+ * The option will be converted to a
+ * <code>java.security.PrivateKey</code> type.
+ *
+ * Group: security
+ *
+ * @param decryptingPrivateKey the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointProducerBuilder decryptingPrivateKey(
+ String decryptingPrivateKey) {
+ doSetProperty("decryptingPrivateKey", decryptingPrivateKey);
+ return this;
+ }
+ /**
+ * The algorithm used to encrypt EDI message.
+ *
+ * The option is a:
+ *
<code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code>
type.
+ *
+ * Group: security
+ *
+ * @param encryptingAlgorithm the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointProducerBuilder encryptingAlgorithm(
+ org.apache.camel.component.as2.api.AS2EncryptionAlgorithm
encryptingAlgorithm) {
+ doSetProperty("encryptingAlgorithm", encryptingAlgorithm);
+ return this;
+ }
+ /**
+ * The algorithm used to encrypt EDI message.
+ *
+ * The option will be converted to a
+ *
<code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code>
type.
+ *
+ * Group: security
+ *
+ * @param encryptingAlgorithm the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointProducerBuilder encryptingAlgorithm(
+ String encryptingAlgorithm) {
+ doSetProperty("encryptingAlgorithm", encryptingAlgorithm);
+ return this;
+ }
+ /**
+ * The chain of certificates used to encrypt EDI message.
+ *
+ * The option is a:
+ * <code>java.security.cert.Certificate[]</code> type.
+ *
+ * Group: security
+ *
+ * @param encryptingCertificateChain the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointProducerBuilder encryptingCertificateChain(
+ java.security.cert.Certificate[] encryptingCertificateChain) {
+ doSetProperty("encryptingCertificateChain",
encryptingCertificateChain);
+ return this;
+ }
+ /**
+ * The chain of certificates used to encrypt EDI message.
+ *
+ * The option will be converted to a
+ * <code>java.security.cert.Certificate[]</code> type.
+ *
+ * Group: security
+ *
+ * @param encryptingCertificateChain the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointProducerBuilder encryptingCertificateChain(
+ String encryptingCertificateChain) {
+ doSetProperty("encryptingCertificateChain",
encryptingCertificateChain);
+ return this;
+ }
+ /**
+ * The list of algorithms, in order of preference, requested to
generate
+ * a message integrity check (MIC) returned in message dispostion
+ * notification (MDN).
+ *
+ * The option is a: <code>java.lang.String[]</code> type.
+ *
+ * Group: security
+ *
+ * @param signedReceiptMicAlgorithms the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointProducerBuilder signedReceiptMicAlgorithms(
+ String[] signedReceiptMicAlgorithms) {
+ doSetProperty("signedReceiptMicAlgorithms",
signedReceiptMicAlgorithms);
+ return this;
+ }
+ /**
+ * The list of algorithms, in order of preference, requested to
generate
+ * a message integrity check (MIC) returned in message dispostion
+ * notification (MDN).
+ *
+ * The option will be converted to a
+ * <code>java.lang.String[]</code> type.
+ *
+ * Group: security
+ *
* @param signedReceiptMicAlgorithms the value to set
* @return the dsl builder
*/
@@ -1502,7 +1619,7 @@ public interface AS2EndpointBuilderFactory {
* The option is a:
*
<code>org.apache.camel.component.as2.api.AS2SignatureAlgorithm</code>
type.
*
- * Group: common
+ * Group: security
*
* @param signingAlgorithm the value to set
* @return the dsl builder
@@ -1518,7 +1635,7 @@ public interface AS2EndpointBuilderFactory {
* The option will be converted to a
*
<code>org.apache.camel.component.as2.api.AS2SignatureAlgorithm</code>
type.
*
- * Group: common
+ * Group: security
*
* @param signingAlgorithm the value to set
* @return the dsl builder
@@ -1534,7 +1651,7 @@ public interface AS2EndpointBuilderFactory {
* The option is a:
* <code>java.security.cert.Certificate[]</code> type.
*
- * Group: common
+ * Group: security
*
* @param signingCertificateChain the value to set
* @return the dsl builder
@@ -1550,7 +1667,7 @@ public interface AS2EndpointBuilderFactory {
* The option will be converted to a
* <code>java.security.cert.Certificate[]</code> type.
*
- * Group: common
+ * Group: security
*
* @param signingCertificateChain the value to set
* @return the dsl builder
@@ -1566,7 +1683,7 @@ public interface AS2EndpointBuilderFactory {
* The option is a: <code>java.security.PrivateKey</code>
* type.
*
- * Group: common
+ * Group: security
*
* @param signingPrivateKey the value to set
* @return the dsl builder
@@ -1582,7 +1699,7 @@ public interface AS2EndpointBuilderFactory {
* The option will be converted to a
* <code>java.security.PrivateKey</code> type.
*
- * Group: common
+ * Group: security
*
* @param signingPrivateKey the value to set
* @return the dsl builder
@@ -1593,78 +1710,41 @@ public interface AS2EndpointBuilderFactory {
return this;
}
/**
- * The value of Subject header of AS2 message.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: common
- *
- * @param subject the value to set
- * @return the dsl builder
- */
- default AS2EndpointProducerBuilder subject(String subject) {
- doSetProperty("subject", subject);
- return this;
- }
- /**
- * The host name (IP or DNS name) of target host.
+ * Certifiates to validate the messages signature against. If not
+ * supplied, validation will not take place. Server: validates the
+ * received message. Client: not yet implemented, should validate the
+ * MDN.
*
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: common
- *
- * @param targetHostname the value to set
- * @return the dsl builder
- */
- default AS2EndpointProducerBuilder targetHostname(String
targetHostname) {
- doSetProperty("targetHostname", targetHostname);
- return this;
- }
- /**
- * The port number of target host. -1 indicates the scheme default
port.
- *
- * The option is a: <code>java.lang.Integer</code> type.
+ * The option is a:
+ * <code>java.security.cert.Certificate[]</code> type.
*
- * Group: common
+ * Group: security
*
- * @param targetPortNumber the value to set
+ * @param validateSigningCertificateChain the value to set
* @return the dsl builder
*/
- default AS2EndpointProducerBuilder targetPortNumber(
- Integer targetPortNumber) {
- doSetProperty("targetPortNumber", targetPortNumber);
+ default AS2EndpointProducerBuilder validateSigningCertificateChain(
+ java.security.cert.Certificate[]
validateSigningCertificateChain) {
+ doSetProperty("validateSigningCertificateChain",
validateSigningCertificateChain);
return this;
}
/**
- * The port number of target host. -1 indicates the scheme default
port.
+ * Certifiates to validate the messages signature against. If not
+ * supplied, validation will not take place. Server: validates the
+ * received message. Client: not yet implemented, should validate the
+ * MDN.
*
* The option will be converted to a
- * <code>java.lang.Integer</code> type.
- *
- * Group: common
- *
- * @param targetPortNumber the value to set
- * @return the dsl builder
- */
- default AS2EndpointProducerBuilder targetPortNumber(
- String targetPortNumber) {
- doSetProperty("targetPortNumber", targetPortNumber);
- return this;
- }
- /**
- * The value included in the User-Agent message header identifying the
- * AS2 user agent.
- *
- * The option is a: <code>java.lang.String</code> type.
+ * <code>java.security.cert.Certificate[]</code> type.
*
- * Default: Camel AS2 Client Endpoint
- * Group: common
+ * Group: security
*
- * @param userAgent the value to set
+ * @param validateSigningCertificateChain the value to set
* @return the dsl builder
*/
- default AS2EndpointProducerBuilder userAgent(String userAgent) {
- doSetProperty("userAgent", userAgent);
+ default AS2EndpointProducerBuilder validateSigningCertificateChain(
+ String validateSigningCertificateChain) {
+ doSetProperty("validateSigningCertificateChain",
validateSigningCertificateChain);
return this;
}
}
@@ -1880,38 +1960,6 @@ public interface AS2EndpointBuilderFactory {
doSetProperty("compressionAlgorithm", compressionAlgorithm);
return this;
}
- /**
- * The key used to encrypt the EDI message.
- *
- * The option is a: <code>java.security.PrivateKey</code>
- * type.
- *
- * Group: common
- *
- * @param decryptingPrivateKey the value to set
- * @return the dsl builder
- */
- default AS2EndpointBuilder decryptingPrivateKey(
- java.security.PrivateKey decryptingPrivateKey) {
- doSetProperty("decryptingPrivateKey", decryptingPrivateKey);
- return this;
- }
- /**
- * The key used to encrypt the EDI message.
- *
- * The option will be converted to a
- * <code>java.security.PrivateKey</code> type.
- *
- * Group: common
- *
- * @param decryptingPrivateKey the value to set
- * @return the dsl builder
- */
- default AS2EndpointBuilder decryptingPrivateKey(
- String decryptingPrivateKey) {
- doSetProperty("decryptingPrivateKey", decryptingPrivateKey);
- return this;
- }
/**
* The value of the Disposition-Notification-To header. Assigning a
* value to this parameter requests a message disposition notification
@@ -1941,104 +1989,40 @@ public interface AS2EndpointBuilderFactory {
*/
default AS2EndpointBuilder ediMessageTransferEncoding(
String ediMessageTransferEncoding) {
- doSetProperty("ediMessageTransferEncoding",
ediMessageTransferEncoding);
- return this;
- }
- /**
- * The content type of EDI message. One of application/edifact,
- * application/edi-x12, application/edi-consent.
- *
- * The option is a:
- * <code>org.apache.http.entity.ContentType</code> type.
- *
- * Group: common
- *
- * @param ediMessageType the value to set
- * @return the dsl builder
- */
- default AS2EndpointBuilder ediMessageType(
- org.apache.http.entity.ContentType ediMessageType) {
- doSetProperty("ediMessageType", ediMessageType);
- return this;
- }
- /**
- * The content type of EDI message. One of application/edifact,
- * application/edi-x12, application/edi-consent.
- *
- * The option will be converted to a
- * <code>org.apache.http.entity.ContentType</code> type.
- *
- * Group: common
- *
- * @param ediMessageType the value to set
- * @return the dsl builder
- */
- default AS2EndpointBuilder ediMessageType(String ediMessageType) {
- doSetProperty("ediMessageType", ediMessageType);
- return this;
- }
- /**
- * The algorithm used to encrypt EDI message.
- *
- * The option is a:
- *
<code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code>
type.
- *
- * Group: common
- *
- * @param encryptingAlgorithm the value to set
- * @return the dsl builder
- */
- default AS2EndpointBuilder encryptingAlgorithm(
- org.apache.camel.component.as2.api.AS2EncryptionAlgorithm
encryptingAlgorithm) {
- doSetProperty("encryptingAlgorithm", encryptingAlgorithm);
- return this;
- }
- /**
- * The algorithm used to encrypt EDI message.
- *
- * The option will be converted to a
- *
<code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code>
type.
- *
- * Group: common
- *
- * @param encryptingAlgorithm the value to set
- * @return the dsl builder
- */
- default AS2EndpointBuilder encryptingAlgorithm(
- String encryptingAlgorithm) {
- doSetProperty("encryptingAlgorithm", encryptingAlgorithm);
+ doSetProperty("ediMessageTransferEncoding",
ediMessageTransferEncoding);
return this;
}
/**
- * The chain of certificates used to encrypt EDI message.
+ * The content type of EDI message. One of application/edifact,
+ * application/edi-x12, application/edi-consent.
*
* The option is a:
- * <code>java.security.cert.Certificate[]</code> type.
+ * <code>org.apache.http.entity.ContentType</code> type.
*
* Group: common
*
- * @param encryptingCertificateChain the value to set
+ * @param ediMessageType the value to set
* @return the dsl builder
*/
- default AS2EndpointBuilder encryptingCertificateChain(
- java.security.cert.Certificate[] encryptingCertificateChain) {
- doSetProperty("encryptingCertificateChain",
encryptingCertificateChain);
+ default AS2EndpointBuilder ediMessageType(
+ org.apache.http.entity.ContentType ediMessageType) {
+ doSetProperty("ediMessageType", ediMessageType);
return this;
}
/**
- * The chain of certificates used to encrypt EDI message.
+ * The content type of EDI message. One of application/edifact,
+ * application/edi-x12, application/edi-consent.
*
* The option will be converted to a
- * <code>java.security.cert.Certificate[]</code> type.
+ * <code>org.apache.http.entity.ContentType</code> type.
*
* Group: common
*
- * @param encryptingCertificateChain the value to set
+ * @param ediMessageType the value to set
* @return the dsl builder
*/
- default AS2EndpointBuilder encryptingCertificateChain(
- String encryptingCertificateChain) {
- doSetProperty("encryptingCertificateChain",
encryptingCertificateChain);
+ default AS2EndpointBuilder ediMessageType(String ediMessageType) {
+ doSetProperty("ediMessageType", ediMessageType);
return this;
}
/**
@@ -2294,6 +2278,177 @@ public interface AS2EndpointBuilderFactory {
doSetProperty("serverPortNumber", serverPortNumber);
return this;
}
+ /**
+ * The value of Subject header of AS2 message.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: common
+ *
+ * @param subject the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointBuilder subject(String subject) {
+ doSetProperty("subject", subject);
+ return this;
+ }
+ /**
+ * The host name (IP or DNS name) of target host.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: common
+ *
+ * @param targetHostname the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointBuilder targetHostname(String targetHostname) {
+ doSetProperty("targetHostname", targetHostname);
+ return this;
+ }
+ /**
+ * The port number of target host. -1 indicates the scheme default
port.
+ *
+ * The option is a: <code>java.lang.Integer</code> type.
+ *
+ * Default: 80
+ * Group: common
+ *
+ * @param targetPortNumber the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointBuilder targetPortNumber(Integer targetPortNumber) {
+ doSetProperty("targetPortNumber", targetPortNumber);
+ return this;
+ }
+ /**
+ * The port number of target host. -1 indicates the scheme default
port.
+ *
+ * The option will be converted to a
+ * <code>java.lang.Integer</code> type.
+ *
+ * Default: 80
+ * Group: common
+ *
+ * @param targetPortNumber the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointBuilder targetPortNumber(String targetPortNumber) {
+ doSetProperty("targetPortNumber", targetPortNumber);
+ return this;
+ }
+ /**
+ * The value included in the User-Agent message header identifying the
+ * AS2 user agent.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Default: Camel AS2 Client Endpoint
+ * Group: common
+ *
+ * @param userAgent the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointBuilder userAgent(String userAgent) {
+ doSetProperty("userAgent", userAgent);
+ return this;
+ }
+ /**
+ * The key used to encrypt the EDI message.
+ *
+ * The option is a: <code>java.security.PrivateKey</code>
+ * type.
+ *
+ * Group: security
+ *
+ * @param decryptingPrivateKey the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointBuilder decryptingPrivateKey(
+ java.security.PrivateKey decryptingPrivateKey) {
+ doSetProperty("decryptingPrivateKey", decryptingPrivateKey);
+ return this;
+ }
+ /**
+ * The key used to encrypt the EDI message.
+ *
+ * The option will be converted to a
+ * <code>java.security.PrivateKey</code> type.
+ *
+ * Group: security
+ *
+ * @param decryptingPrivateKey the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointBuilder decryptingPrivateKey(
+ String decryptingPrivateKey) {
+ doSetProperty("decryptingPrivateKey", decryptingPrivateKey);
+ return this;
+ }
+ /**
+ * The algorithm used to encrypt EDI message.
+ *
+ * The option is a:
+ *
<code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code>
type.
+ *
+ * Group: security
+ *
+ * @param encryptingAlgorithm the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointBuilder encryptingAlgorithm(
+ org.apache.camel.component.as2.api.AS2EncryptionAlgorithm
encryptingAlgorithm) {
+ doSetProperty("encryptingAlgorithm", encryptingAlgorithm);
+ return this;
+ }
+ /**
+ * The algorithm used to encrypt EDI message.
+ *
+ * The option will be converted to a
+ *
<code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code>
type.
+ *
+ * Group: security
+ *
+ * @param encryptingAlgorithm the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointBuilder encryptingAlgorithm(
+ String encryptingAlgorithm) {
+ doSetProperty("encryptingAlgorithm", encryptingAlgorithm);
+ return this;
+ }
+ /**
+ * The chain of certificates used to encrypt EDI message.
+ *
+ * The option is a:
+ * <code>java.security.cert.Certificate[]</code> type.
+ *
+ * Group: security
+ *
+ * @param encryptingCertificateChain the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointBuilder encryptingCertificateChain(
+ java.security.cert.Certificate[] encryptingCertificateChain) {
+ doSetProperty("encryptingCertificateChain",
encryptingCertificateChain);
+ return this;
+ }
+ /**
+ * The chain of certificates used to encrypt EDI message.
+ *
+ * The option will be converted to a
+ * <code>java.security.cert.Certificate[]</code> type.
+ *
+ * Group: security
+ *
+ * @param encryptingCertificateChain the value to set
+ * @return the dsl builder
+ */
+ default AS2EndpointBuilder encryptingCertificateChain(
+ String encryptingCertificateChain) {
+ doSetProperty("encryptingCertificateChain",
encryptingCertificateChain);
+ return this;
+ }
/**
* The list of algorithms, in order of preference, requested to
generate
* a message integrity check (MIC) returned in message dispostion
@@ -2301,7 +2456,7 @@ public interface AS2EndpointBuilderFactory {
*
* The option is a: <code>java.lang.String[]</code> type.
*
- * Group: common
+ * Group: security
*
* @param signedReceiptMicAlgorithms the value to set
* @return the dsl builder
@@ -2319,7 +2474,7 @@ public interface AS2EndpointBuilderFactory {
* The option will be converted to a
* <code>java.lang.String[]</code> type.
*
- * Group: common
+ * Group: security
*
* @param signedReceiptMicAlgorithms the value to set
* @return the dsl builder
@@ -2335,7 +2490,7 @@ public interface AS2EndpointBuilderFactory {
* The option is a:
*
<code>org.apache.camel.component.as2.api.AS2SignatureAlgorithm</code>
type.
*
- * Group: common
+ * Group: security
*
* @param signingAlgorithm the value to set
* @return the dsl builder
@@ -2351,7 +2506,7 @@ public interface AS2EndpointBuilderFactory {
* The option will be converted to a
*
<code>org.apache.camel.component.as2.api.AS2SignatureAlgorithm</code>
type.
*
- * Group: common
+ * Group: security
*
* @param signingAlgorithm the value to set
* @return the dsl builder
@@ -2366,7 +2521,7 @@ public interface AS2EndpointBuilderFactory {
* The option is a:
* <code>java.security.cert.Certificate[]</code> type.
*
- * Group: common
+ * Group: security
*
* @param signingCertificateChain the value to set
* @return the dsl builder
@@ -2382,7 +2537,7 @@ public interface AS2EndpointBuilderFactory {
* The option will be converted to a
* <code>java.security.cert.Certificate[]</code> type.
*
- * Group: common
+ * Group: security
*
* @param signingCertificateChain the value to set
* @return the dsl builder
@@ -2398,7 +2553,7 @@ public interface AS2EndpointBuilderFactory {
* The option is a: <code>java.security.PrivateKey</code>
* type.
*
- * Group: common
+ * Group: security
*
* @param signingPrivateKey the value to set
* @return the dsl builder
@@ -2414,7 +2569,7 @@ public interface AS2EndpointBuilderFactory {
* The option will be converted to a
* <code>java.security.PrivateKey</code> type.
*
- * Group: common
+ * Group: security
*
* @param signingPrivateKey the value to set
* @return the dsl builder
@@ -2424,76 +2579,41 @@ public interface AS2EndpointBuilderFactory {
return this;
}
/**
- * The value of Subject header of AS2 message.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: common
- *
- * @param subject the value to set
- * @return the dsl builder
- */
- default AS2EndpointBuilder subject(String subject) {
- doSetProperty("subject", subject);
- return this;
- }
- /**
- * The host name (IP or DNS name) of target host.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: common
- *
- * @param targetHostname the value to set
- * @return the dsl builder
- */
- default AS2EndpointBuilder targetHostname(String targetHostname) {
- doSetProperty("targetHostname", targetHostname);
- return this;
- }
- /**
- * The port number of target host. -1 indicates the scheme default
port.
+ * Certifiates to validate the messages signature against. If not
+ * supplied, validation will not take place. Server: validates the
+ * received message. Client: not yet implemented, should validate the
+ * MDN.
*
- * The option is a: <code>java.lang.Integer</code> type.
+ * The option is a:
+ * <code>java.security.cert.Certificate[]</code> type.
*
- * Group: common
+ * Group: security
*
- * @param targetPortNumber the value to set
+ * @param validateSigningCertificateChain the value to set
* @return the dsl builder
*/
- default AS2EndpointBuilder targetPortNumber(Integer targetPortNumber) {
- doSetProperty("targetPortNumber", targetPortNumber);
+ default AS2EndpointBuilder validateSigningCertificateChain(
+ java.security.cert.Certificate[]
validateSigningCertificateChain) {
+ doSetProperty("validateSigningCertificateChain",
validateSigningCertificateChain);
return this;
}
/**
- * The port number of target host. -1 indicates the scheme default
port.
+ * Certifiates to validate the messages signature against. If not
+ * supplied, validation will not take place. Server: validates the
+ * received message. Client: not yet implemented, should validate the
+ * MDN.
*
* The option will be converted to a
- * <code>java.lang.Integer</code> type.
- *
- * Group: common
- *
- * @param targetPortNumber the value to set
- * @return the dsl builder
- */
- default AS2EndpointBuilder targetPortNumber(String targetPortNumber) {
- doSetProperty("targetPortNumber", targetPortNumber);
- return this;
- }
- /**
- * The value included in the User-Agent message header identifying the
- * AS2 user agent.
- *
- * The option is a: <code>java.lang.String</code> type.
+ * <code>java.security.cert.Certificate[]</code> type.
*
- * Default: Camel AS2 Client Endpoint
- * Group: common
+ * Group: security
*
- * @param userAgent the value to set
+ * @param validateSigningCertificateChain the value to set
* @return the dsl builder
*/
- default AS2EndpointBuilder userAgent(String userAgent) {
- doSetProperty("userAgent", userAgent);
+ default AS2EndpointBuilder validateSigningCertificateChain(
+ String validateSigningCertificateChain) {
+ doSetProperty("validateSigningCertificateChain",
validateSigningCertificateChain);
return this;
}
}