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
commit afd7fc8b26810fe95e539976dc6fa4fc54044182 Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 27 18:25:08 2026 +0100 CAMEL-23832: camel-crypto - improve the component and option descriptions This commit rewrites the component description and the texts of 21 options of crypto: the 2 path options, 18 options of the shared configuration (endpoint and component) and the configuration option of the component. The new texts say which operation reads each option, which key source is used when several are set, and that the registry name options ignore a name without a bean. The old publicKeyName text was a code comment, and the component description named the Java Cryptography Extension, while java.security.Signature is part of the Java Cryptography Architecture. Documentation only, no behavior change. The component JSON, the catalog copy, the doc page header and the DSL are regenerated. camel-crypto is marked as done in tasks/component-descriptions.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../apache/camel/catalog/components/crypto.json | 80 ++++----- .../camel/catalog/docs/crypto-component.adoc | 2 +- .../org/apache/camel/component/crypto/crypto.json | 80 ++++----- .../src/main/docs/crypto-component.adoc | 2 +- .../crypto/DigitalSignatureComponent.java | 7 +- .../crypto/DigitalSignatureConfiguration.java | 158 +++++++---------- .../component/crypto/DigitalSignatureEndpoint.java | 2 +- .../component/ComponentsBuilderFactory.java | 4 +- .../dsl/CryptoComponentBuilderFactory.java | 114 +++++++------ .../builder/endpoint/EndpointHeaderBuilders.java | 4 +- .../builder/endpoint/StaticEndpointBuilders.java | 24 +-- .../DigitalSignatureEndpointBuilderFactory.java | 186 +++++++++++---------- tasks/component-descriptions.md | 2 +- 13 files changed, 327 insertions(+), 338 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/crypto.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/crypto.json index 01ebdf935326..1eb9b4a431fa 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/crypto.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/crypto.json @@ -3,7 +3,7 @@ "kind": "component", "name": "crypto", "title": "Crypto (JCE)", - "description": "Sign and verify exchanges using the Signature Service of the Java Cryptographic Extension (JCE).", + "description": "Sign message bodies and verify their signatures with java.security.Signature of the Java Cryptography Architecture.", "deprecated": false, "firstVersion": "2.3.0", "label": "security,transformation", @@ -24,27 +24,27 @@ "remote": false }, "componentProperties": { - "algorithm": { "index": 0, "kind": "property", "displayName": "Algorithm", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "SHA256withRSA", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the JCE name of the Algorithm that should be used for the signer." }, - "alias": { "index": 1, "kind": "property", "displayName": "Alias", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the alias used to query the KeyStore for keys and {link java.security.cert.Certificate Certificates} to be used [...] - "certificateName": { "index": 2, "kind": "property", "displayName": "Certificate Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the reference name for a Certificate that can be found in the registry." }, - "keystore": { "index": 3, "kind": "property", "displayName": "Keystore", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "java.security.KeyStore", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the KeyStore that can contain keys and Certificates for use in signing and verifying exchanges. A K [...] - "keystoreName": { "index": 4, "kind": "property", "displayName": "Keystore Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the reference name for a Keystore that can be found in the registry." }, + "algorithm": { "index": 0, "kind": "property", "displayName": "Algorithm", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "SHA256withRSA", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The standard name of the signature algorithm of the Java Cryptography Archi [...] + "alias": { "index": 1, "kind": "property", "displayName": "Alias", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The alias of the keystore entry: the sign operation signs with its private key, and the verify operation verifies wi [...] + "certificateName": { "index": 2, "kind": "property", "displayName": "Certificate Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.cert.Certificate bean in the registry to use as the certificate opt [...] + "keystore": { "index": 3, "kind": "property", "displayName": "Keystore", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "java.security.KeyStore", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The keystore that holds the private key for the sign operation and the certificate for the verify operat [...] + "keystoreName": { "index": 4, "kind": "property", "displayName": "Keystore Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.KeyStore bean in the registry to use as the keystore option. A name with [...] "lazyStartProducer": { "index": 5, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail [...] - "privateKey": { "index": 6, "kind": "property", "displayName": "Private Key", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "java.security.PrivateKey", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the PrivateKey that should be used to sign the exchange" }, - "privateKeyName": { "index": 7, "kind": "property", "displayName": "Private Key Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the reference name for a PrivateKey that can be found in the registry." }, - "provider": { "index": 8, "kind": "property", "displayName": "Provider", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the id of the security provider that provides the configured Signature algorithm." }, - "publicKeyName": { "index": 9, "kind": "property", "displayName": "Public Key Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "references that should be resolved when the context changes" }, - "secureRandomName": { "index": 10, "kind": "property", "displayName": "Secure Random Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the reference name for a SecureRandom that can be found in the registry." }, - "signatureHeaderName": { "index": 11, "kind": "property", "displayName": "Signature Header Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the name of the message header that should be used to store the base64 encoded si [...] + "privateKey": { "index": 6, "kind": "property", "displayName": "Private Key", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "java.security.PrivateKey", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The private key that the sign operation signs with. A private key found in t [...] + "privateKeyName": { "index": 7, "kind": "property", "displayName": "Private Key Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.PrivateKey bean in the registry to use as the p [...] + "provider": { "index": 8, "kind": "property", "displayName": "Provider", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of the security provider that provides the signature algorithm, for example BC for Bouncy Castle. The [...] + "publicKeyName": { "index": 9, "kind": "property", "displayName": "Public Key Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.PublicKey bean in the registry to use as the publicKey option. A name [...] + "secureRandomName": { "index": 10, "kind": "property", "displayName": "Secure Random Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.SecureRandom bean in the registry to use as the secureRandom op [...] + "signatureHeaderName": { "index": 11, "kind": "property", "displayName": "Signature Header Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of the header in which the sign operation stores the Base64 encoded signatur [...] "autowiredEnabled": { "index": 12, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching [...] - "bufferSize": { "index": 13, "kind": "property", "displayName": "Buffer Size", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 2048, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the size of the buffer used to read in the Exchange payload data." }, - "certificate": { "index": 14, "kind": "property", "displayName": "Certificate", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.cert.Certificate", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the Certificate that should be used to verify the signature in the exchange b [...] - "clearHeaders": { "index": 15, "kind": "property", "displayName": "Clear Headers", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Determines if the Signature specific headers be cleared after signing and veri [...] - "configuration": { "index": 16, "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "To use the shared DigitalSignatureConfiguration as configuration" }, - "keyStoreParameters": { "index": 17, "kind": "property", "displayName": "Key Store Parameters", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.support.jsse.KeyStoreParameters", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the KeyStore that can contain keys and Cer [...] - "publicKey": { "index": 18, "kind": "property", "displayName": "Public Key", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.PublicKey", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the PublicKey that should be used to verify the signature in the exchange." }, - "secureRandom": { "index": 19, "kind": "property", "displayName": "Secure Random", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.SecureRandom", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the SecureRandom used to initialize the Signature service" }, - "password": { "index": 20, "kind": "property", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the password used to access an aliased PrivateKey in the KeyStore." } + "bufferSize": { "index": 13, "kind": "property", "displayName": "Buffer Size", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 2048, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The size in bytes of the buffer that reads the message body into the sig [...] + "certificate": { "index": 14, "kind": "property", "displayName": "Certificate", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.cert.Certificate", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The certificate whose public key the verify operation checks the signature with. [...] + "clearHeaders": { "index": 15, "kind": "property", "displayName": "Clear Headers", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Whether to remove the headers whose names start with CamelSignature or CamelDi [...] + "configuration": { "index": 16, "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The configuration with the default options of all endpoints. Each endpoint gets a copy of it, and the options of the endpoint change only that copy." }, + "keyStoreParameters": { "index": 17, "kind": "property", "displayName": "Key Store Parameters", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.support.jsse.KeyStoreParameters", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The KeyStoreParameters (resource, type, passwor [...] + "publicKey": { "index": 18, "kind": "property", "displayName": "Public Key", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.PublicKey", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The public key that the verify operation checks the signature with, when neither the keysto [...] + "secureRandom": { "index": 19, "kind": "property", "displayName": "Secure Random", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.SecureRandom", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The java.security.SecureRandom that the sign operation passes [...] + "password": { "index": 20, "kind": "property", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The password of the private key entry in the keystore, which the sign operation [...] }, "headers": { "CamelSignaturePrivateKey": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "java.security.PrivateKey", "deprecated": false, "autowired": false, "secret": false, "description": "The PrivateKey that should be used to sign the message", "constantName": "org.apache.camel.component.crypto.DigitalSignatureConstants#SIGNATURE_PRIVATE_KEY" }, @@ -58,26 +58,26 @@ "producerOut": { "carriers": [ "unchanged" ], "description": "The body is unchanged: a signature that does not verify fails the exchange with a SignatureException" } }, "properties": { - "cryptoOperation": { "index": 0, "kind": "path", "displayName": "Crypto Operation", "group": "producer", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.crypto.CryptoOperation", "enum": [ "sign", "verify" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the Crypto operation from that supp [...] - "name": { "index": 1, "kind": "path", "displayName": "Name", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The logical name of this operation." }, - "algorithm": { "index": 2, "kind": "parameter", "displayName": "Algorithm", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "SHA256withRSA", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the JCE name of the Algorithm that should be used for the signer." }, - "alias": { "index": 3, "kind": "parameter", "displayName": "Alias", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the alias used to query the KeyStore for keys and {link java.security.cert.Certificate Certificates} to be use [...] - "certificateName": { "index": 4, "kind": "parameter", "displayName": "Certificate Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the reference name for a Certificate that can be found in the registry." }, - "keystore": { "index": 5, "kind": "parameter", "displayName": "Keystore", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "java.security.KeyStore", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the KeyStore that can contain keys and Certificates for use in signing and verifying exchanges. A [...] - "keystoreName": { "index": 6, "kind": "parameter", "displayName": "Keystore Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the reference name for a Keystore that can be found in the registry." }, - "privateKey": { "index": 7, "kind": "parameter", "displayName": "Private Key", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "java.security.PrivateKey", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the PrivateKey that should be used to sign the exchange" }, - "privateKeyName": { "index": 8, "kind": "parameter", "displayName": "Private Key Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the reference name for a PrivateKey that can be found in the registry." }, - "provider": { "index": 9, "kind": "parameter", "displayName": "Provider", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the id of the security provider that provides the configured Signature algorithm." }, - "publicKeyName": { "index": 10, "kind": "parameter", "displayName": "Public Key Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "references that should be resolved when the context changes" }, - "secureRandomName": { "index": 11, "kind": "parameter", "displayName": "Secure Random Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the reference name for a SecureRandom that can be found in the registry." }, - "signatureHeaderName": { "index": 12, "kind": "parameter", "displayName": "Signature Header Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the name of the message header that should be used to store the base64 encoded s [...] + "cryptoOperation": { "index": 0, "kind": "path", "displayName": "Crypto Operation", "group": "producer", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.crypto.CryptoOperation", "enum": [ "sign", "verify" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The operation: sign creates a signature [...] + "name": { "index": 1, "kind": "path", "displayName": "Name", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "A name of your choice that tells the endpoints apart, as in crypto:sign:name. The component does not use it." }, + "algorithm": { "index": 2, "kind": "parameter", "displayName": "Algorithm", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "SHA256withRSA", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The standard name of the signature algorithm of the Java Cryptography Arch [...] + "alias": { "index": 3, "kind": "parameter", "displayName": "Alias", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The alias of the keystore entry: the sign operation signs with its private key, and the verify operation verifies w [...] + "certificateName": { "index": 4, "kind": "parameter", "displayName": "Certificate Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.cert.Certificate bean in the registry to use as the certificate op [...] + "keystore": { "index": 5, "kind": "parameter", "displayName": "Keystore", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "java.security.KeyStore", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The keystore that holds the private key for the sign operation and the certificate for the verify opera [...] + "keystoreName": { "index": 6, "kind": "parameter", "displayName": "Keystore Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.KeyStore bean in the registry to use as the keystore option. A name with [...] + "privateKey": { "index": 7, "kind": "parameter", "displayName": "Private Key", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "java.security.PrivateKey", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The private key that the sign operation signs with. A private key found in [...] + "privateKeyName": { "index": 8, "kind": "parameter", "displayName": "Private Key Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.PrivateKey bean in the registry to use as the [...] + "provider": { "index": 9, "kind": "parameter", "displayName": "Provider", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of the security provider that provides the signature algorithm, for example BC for Bouncy Castle. Th [...] + "publicKeyName": { "index": 10, "kind": "parameter", "displayName": "Public Key Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.PublicKey bean in the registry to use as the publicKey option. A nam [...] + "secureRandomName": { "index": 11, "kind": "parameter", "displayName": "Secure Random Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.SecureRandom bean in the registry to use as the secureRandom o [...] + "signatureHeaderName": { "index": 12, "kind": "parameter", "displayName": "Signature Header Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of the header in which the sign operation stores the Base64 encoded signatu [...] "lazyStartProducer": { "index": 13, "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 produ [...] - "bufferSize": { "index": 14, "kind": "parameter", "displayName": "Buffer Size", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 2048, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the size of the buffer used to read in the Exchange payload data." }, - "certificate": { "index": 15, "kind": "parameter", "displayName": "Certificate", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.cert.Certificate", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the Certificate that should be used to verify the signature in the exchange [...] - "clearHeaders": { "index": 16, "kind": "parameter", "displayName": "Clear Headers", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Determines if the Signature specific headers be cleared after signing and ver [...] - "keyStoreParameters": { "index": 17, "kind": "parameter", "displayName": "Key Store Parameters", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.support.jsse.KeyStoreParameters", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the KeyStore that can contain keys and Ce [...] - "publicKey": { "index": 18, "kind": "parameter", "displayName": "Public Key", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.PublicKey", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the PublicKey that should be used to verify the signature in the exchange." }, - "secureRandom": { "index": 19, "kind": "parameter", "displayName": "Secure Random", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.SecureRandom", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the SecureRandom used to initialize the Signature service" }, - "password": { "index": 20, "kind": "parameter", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the password used to access an aliased PrivateKey in the KeyStore." } + "bufferSize": { "index": 14, "kind": "parameter", "displayName": "Buffer Size", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 2048, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The size in bytes of the buffer that reads the message body into the si [...] + "certificate": { "index": 15, "kind": "parameter", "displayName": "Certificate", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.cert.Certificate", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The certificate whose public key the verify operation checks the signature with. [...] + "clearHeaders": { "index": 16, "kind": "parameter", "displayName": "Clear Headers", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Whether to remove the headers whose names start with CamelSignature or CamelD [...] + "keyStoreParameters": { "index": 17, "kind": "parameter", "displayName": "Key Store Parameters", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.support.jsse.KeyStoreParameters", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The KeyStoreParameters (resource, type, passwo [...] + "publicKey": { "index": 18, "kind": "parameter", "displayName": "Public Key", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.PublicKey", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The public key that the verify operation checks the signature with, when neither the keyst [...] + "secureRandom": { "index": 19, "kind": "parameter", "displayName": "Secure Random", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.SecureRandom", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The java.security.SecureRandom that the sign operation passe [...] + "password": { "index": 20, "kind": "parameter", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The password of the private key entry in the keystore, which the sign operation [...] } } diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/crypto-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/crypto-component.adoc index 71cb79dfbef7..562888dadf9a 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/crypto-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/crypto-component.adoc @@ -2,7 +2,7 @@ :doctitle: Crypto (JCE) :shortname: crypto :artifactid: camel-crypto -:description: Sign and verify exchanges using the Signature Service of the Java Cryptographic Extension (JCE). +:description: Sign message bodies and verify their signatures with java.security.Signature of the Java Cryptography Architecture. :since: 2.3 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-crypto/src/generated/resources/META-INF/org/apache/camel/component/crypto/crypto.json b/components/camel-crypto/src/generated/resources/META-INF/org/apache/camel/component/crypto/crypto.json index 01ebdf935326..1eb9b4a431fa 100644 --- a/components/camel-crypto/src/generated/resources/META-INF/org/apache/camel/component/crypto/crypto.json +++ b/components/camel-crypto/src/generated/resources/META-INF/org/apache/camel/component/crypto/crypto.json @@ -3,7 +3,7 @@ "kind": "component", "name": "crypto", "title": "Crypto (JCE)", - "description": "Sign and verify exchanges using the Signature Service of the Java Cryptographic Extension (JCE).", + "description": "Sign message bodies and verify their signatures with java.security.Signature of the Java Cryptography Architecture.", "deprecated": false, "firstVersion": "2.3.0", "label": "security,transformation", @@ -24,27 +24,27 @@ "remote": false }, "componentProperties": { - "algorithm": { "index": 0, "kind": "property", "displayName": "Algorithm", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "SHA256withRSA", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the JCE name of the Algorithm that should be used for the signer." }, - "alias": { "index": 1, "kind": "property", "displayName": "Alias", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the alias used to query the KeyStore for keys and {link java.security.cert.Certificate Certificates} to be used [...] - "certificateName": { "index": 2, "kind": "property", "displayName": "Certificate Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the reference name for a Certificate that can be found in the registry." }, - "keystore": { "index": 3, "kind": "property", "displayName": "Keystore", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "java.security.KeyStore", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the KeyStore that can contain keys and Certificates for use in signing and verifying exchanges. A K [...] - "keystoreName": { "index": 4, "kind": "property", "displayName": "Keystore Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the reference name for a Keystore that can be found in the registry." }, + "algorithm": { "index": 0, "kind": "property", "displayName": "Algorithm", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "SHA256withRSA", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The standard name of the signature algorithm of the Java Cryptography Archi [...] + "alias": { "index": 1, "kind": "property", "displayName": "Alias", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The alias of the keystore entry: the sign operation signs with its private key, and the verify operation verifies wi [...] + "certificateName": { "index": 2, "kind": "property", "displayName": "Certificate Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.cert.Certificate bean in the registry to use as the certificate opt [...] + "keystore": { "index": 3, "kind": "property", "displayName": "Keystore", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "java.security.KeyStore", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The keystore that holds the private key for the sign operation and the certificate for the verify operat [...] + "keystoreName": { "index": 4, "kind": "property", "displayName": "Keystore Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.KeyStore bean in the registry to use as the keystore option. A name with [...] "lazyStartProducer": { "index": 5, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail [...] - "privateKey": { "index": 6, "kind": "property", "displayName": "Private Key", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "java.security.PrivateKey", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the PrivateKey that should be used to sign the exchange" }, - "privateKeyName": { "index": 7, "kind": "property", "displayName": "Private Key Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the reference name for a PrivateKey that can be found in the registry." }, - "provider": { "index": 8, "kind": "property", "displayName": "Provider", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the id of the security provider that provides the configured Signature algorithm." }, - "publicKeyName": { "index": 9, "kind": "property", "displayName": "Public Key Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "references that should be resolved when the context changes" }, - "secureRandomName": { "index": 10, "kind": "property", "displayName": "Secure Random Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the reference name for a SecureRandom that can be found in the registry." }, - "signatureHeaderName": { "index": 11, "kind": "property", "displayName": "Signature Header Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the name of the message header that should be used to store the base64 encoded si [...] + "privateKey": { "index": 6, "kind": "property", "displayName": "Private Key", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "java.security.PrivateKey", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The private key that the sign operation signs with. A private key found in t [...] + "privateKeyName": { "index": 7, "kind": "property", "displayName": "Private Key Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.PrivateKey bean in the registry to use as the p [...] + "provider": { "index": 8, "kind": "property", "displayName": "Provider", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of the security provider that provides the signature algorithm, for example BC for Bouncy Castle. The [...] + "publicKeyName": { "index": 9, "kind": "property", "displayName": "Public Key Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.PublicKey bean in the registry to use as the publicKey option. A name [...] + "secureRandomName": { "index": 10, "kind": "property", "displayName": "Secure Random Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.SecureRandom bean in the registry to use as the secureRandom op [...] + "signatureHeaderName": { "index": 11, "kind": "property", "displayName": "Signature Header Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of the header in which the sign operation stores the Base64 encoded signatur [...] "autowiredEnabled": { "index": 12, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching [...] - "bufferSize": { "index": 13, "kind": "property", "displayName": "Buffer Size", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 2048, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the size of the buffer used to read in the Exchange payload data." }, - "certificate": { "index": 14, "kind": "property", "displayName": "Certificate", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.cert.Certificate", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the Certificate that should be used to verify the signature in the exchange b [...] - "clearHeaders": { "index": 15, "kind": "property", "displayName": "Clear Headers", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Determines if the Signature specific headers be cleared after signing and veri [...] - "configuration": { "index": 16, "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "To use the shared DigitalSignatureConfiguration as configuration" }, - "keyStoreParameters": { "index": 17, "kind": "property", "displayName": "Key Store Parameters", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.support.jsse.KeyStoreParameters", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the KeyStore that can contain keys and Cer [...] - "publicKey": { "index": 18, "kind": "property", "displayName": "Public Key", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.PublicKey", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the PublicKey that should be used to verify the signature in the exchange." }, - "secureRandom": { "index": 19, "kind": "property", "displayName": "Secure Random", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.SecureRandom", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the SecureRandom used to initialize the Signature service" }, - "password": { "index": 20, "kind": "property", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the password used to access an aliased PrivateKey in the KeyStore." } + "bufferSize": { "index": 13, "kind": "property", "displayName": "Buffer Size", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 2048, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The size in bytes of the buffer that reads the message body into the sig [...] + "certificate": { "index": 14, "kind": "property", "displayName": "Certificate", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.cert.Certificate", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The certificate whose public key the verify operation checks the signature with. [...] + "clearHeaders": { "index": 15, "kind": "property", "displayName": "Clear Headers", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Whether to remove the headers whose names start with CamelSignature or CamelDi [...] + "configuration": { "index": 16, "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The configuration with the default options of all endpoints. Each endpoint gets a copy of it, and the options of the endpoint change only that copy." }, + "keyStoreParameters": { "index": 17, "kind": "property", "displayName": "Key Store Parameters", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.support.jsse.KeyStoreParameters", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The KeyStoreParameters (resource, type, passwor [...] + "publicKey": { "index": 18, "kind": "property", "displayName": "Public Key", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.PublicKey", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The public key that the verify operation checks the signature with, when neither the keysto [...] + "secureRandom": { "index": 19, "kind": "property", "displayName": "Secure Random", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.SecureRandom", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The java.security.SecureRandom that the sign operation passes [...] + "password": { "index": 20, "kind": "property", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The password of the private key entry in the keystore, which the sign operation [...] }, "headers": { "CamelSignaturePrivateKey": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "java.security.PrivateKey", "deprecated": false, "autowired": false, "secret": false, "description": "The PrivateKey that should be used to sign the message", "constantName": "org.apache.camel.component.crypto.DigitalSignatureConstants#SIGNATURE_PRIVATE_KEY" }, @@ -58,26 +58,26 @@ "producerOut": { "carriers": [ "unchanged" ], "description": "The body is unchanged: a signature that does not verify fails the exchange with a SignatureException" } }, "properties": { - "cryptoOperation": { "index": 0, "kind": "path", "displayName": "Crypto Operation", "group": "producer", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.crypto.CryptoOperation", "enum": [ "sign", "verify" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the Crypto operation from that supp [...] - "name": { "index": 1, "kind": "path", "displayName": "Name", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The logical name of this operation." }, - "algorithm": { "index": 2, "kind": "parameter", "displayName": "Algorithm", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "SHA256withRSA", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the JCE name of the Algorithm that should be used for the signer." }, - "alias": { "index": 3, "kind": "parameter", "displayName": "Alias", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the alias used to query the KeyStore for keys and {link java.security.cert.Certificate Certificates} to be use [...] - "certificateName": { "index": 4, "kind": "parameter", "displayName": "Certificate Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the reference name for a Certificate that can be found in the registry." }, - "keystore": { "index": 5, "kind": "parameter", "displayName": "Keystore", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "java.security.KeyStore", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the KeyStore that can contain keys and Certificates for use in signing and verifying exchanges. A [...] - "keystoreName": { "index": 6, "kind": "parameter", "displayName": "Keystore Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the reference name for a Keystore that can be found in the registry." }, - "privateKey": { "index": 7, "kind": "parameter", "displayName": "Private Key", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "java.security.PrivateKey", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the PrivateKey that should be used to sign the exchange" }, - "privateKeyName": { "index": 8, "kind": "parameter", "displayName": "Private Key Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the reference name for a PrivateKey that can be found in the registry." }, - "provider": { "index": 9, "kind": "parameter", "displayName": "Provider", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the id of the security provider that provides the configured Signature algorithm." }, - "publicKeyName": { "index": 10, "kind": "parameter", "displayName": "Public Key Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "references that should be resolved when the context changes" }, - "secureRandomName": { "index": 11, "kind": "parameter", "displayName": "Secure Random Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the reference name for a SecureRandom that can be found in the registry." }, - "signatureHeaderName": { "index": 12, "kind": "parameter", "displayName": "Signature Header Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the name of the message header that should be used to store the base64 encoded s [...] + "cryptoOperation": { "index": 0, "kind": "path", "displayName": "Crypto Operation", "group": "producer", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.crypto.CryptoOperation", "enum": [ "sign", "verify" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The operation: sign creates a signature [...] + "name": { "index": 1, "kind": "path", "displayName": "Name", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "A name of your choice that tells the endpoints apart, as in crypto:sign:name. The component does not use it." }, + "algorithm": { "index": 2, "kind": "parameter", "displayName": "Algorithm", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "SHA256withRSA", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The standard name of the signature algorithm of the Java Cryptography Arch [...] + "alias": { "index": 3, "kind": "parameter", "displayName": "Alias", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The alias of the keystore entry: the sign operation signs with its private key, and the verify operation verifies w [...] + "certificateName": { "index": 4, "kind": "parameter", "displayName": "Certificate Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.cert.Certificate bean in the registry to use as the certificate op [...] + "keystore": { "index": 5, "kind": "parameter", "displayName": "Keystore", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "java.security.KeyStore", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The keystore that holds the private key for the sign operation and the certificate for the verify opera [...] + "keystoreName": { "index": 6, "kind": "parameter", "displayName": "Keystore Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.KeyStore bean in the registry to use as the keystore option. A name with [...] + "privateKey": { "index": 7, "kind": "parameter", "displayName": "Private Key", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "java.security.PrivateKey", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The private key that the sign operation signs with. A private key found in [...] + "privateKeyName": { "index": 8, "kind": "parameter", "displayName": "Private Key Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.PrivateKey bean in the registry to use as the [...] + "provider": { "index": 9, "kind": "parameter", "displayName": "Provider", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of the security provider that provides the signature algorithm, for example BC for Bouncy Castle. Th [...] + "publicKeyName": { "index": 10, "kind": "parameter", "displayName": "Public Key Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.PublicKey bean in the registry to use as the publicKey option. A nam [...] + "secureRandomName": { "index": 11, "kind": "parameter", "displayName": "Secure Random Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of a java.security.SecureRandom bean in the registry to use as the secureRandom o [...] + "signatureHeaderName": { "index": 12, "kind": "parameter", "displayName": "Signature Header Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The name of the header in which the sign operation stores the Base64 encoded signatu [...] "lazyStartProducer": { "index": 13, "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 produ [...] - "bufferSize": { "index": 14, "kind": "parameter", "displayName": "Buffer Size", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 2048, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the size of the buffer used to read in the Exchange payload data." }, - "certificate": { "index": 15, "kind": "parameter", "displayName": "Certificate", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.cert.Certificate", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the Certificate that should be used to verify the signature in the exchange [...] - "clearHeaders": { "index": 16, "kind": "parameter", "displayName": "Clear Headers", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Determines if the Signature specific headers be cleared after signing and ver [...] - "keyStoreParameters": { "index": 17, "kind": "parameter", "displayName": "Key Store Parameters", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.support.jsse.KeyStoreParameters", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the KeyStore that can contain keys and Ce [...] - "publicKey": { "index": 18, "kind": "parameter", "displayName": "Public Key", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.PublicKey", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the PublicKey that should be used to verify the signature in the exchange." }, - "secureRandom": { "index": 19, "kind": "parameter", "displayName": "Secure Random", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.SecureRandom", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Set the SecureRandom used to initialize the Signature service" }, - "password": { "index": 20, "kind": "parameter", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Sets the password used to access an aliased PrivateKey in the KeyStore." } + "bufferSize": { "index": 14, "kind": "parameter", "displayName": "Buffer Size", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 2048, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The size in bytes of the buffer that reads the message body into the si [...] + "certificate": { "index": 15, "kind": "parameter", "displayName": "Certificate", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.cert.Certificate", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The certificate whose public key the verify operation checks the signature with. [...] + "clearHeaders": { "index": 16, "kind": "parameter", "displayName": "Clear Headers", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "Whether to remove the headers whose names start with CamelSignature or CamelD [...] + "keyStoreParameters": { "index": 17, "kind": "parameter", "displayName": "Key Store Parameters", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.support.jsse.KeyStoreParameters", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The KeyStoreParameters (resource, type, passwo [...] + "publicKey": { "index": 18, "kind": "parameter", "displayName": "Public Key", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.PublicKey", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The public key that the verify operation checks the signature with, when neither the keyst [...] + "secureRandom": { "index": 19, "kind": "parameter", "displayName": "Secure Random", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.security.SecureRandom", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The java.security.SecureRandom that the sign operation passe [...] + "password": { "index": 20, "kind": "parameter", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.crypto.DigitalSignatureConfiguration", "configurationField": "configuration", "description": "The password of the private key entry in the keystore, which the sign operation [...] } } diff --git a/components/camel-crypto/src/main/docs/crypto-component.adoc b/components/camel-crypto/src/main/docs/crypto-component.adoc index 71cb79dfbef7..562888dadf9a 100644 --- a/components/camel-crypto/src/main/docs/crypto-component.adoc +++ b/components/camel-crypto/src/main/docs/crypto-component.adoc @@ -2,7 +2,7 @@ :doctitle: Crypto (JCE) :shortname: crypto :artifactid: camel-crypto -:description: Sign and verify exchanges using the Signature Service of the Java Cryptographic Extension (JCE). +:description: Sign message bodies and verify their signatures with java.security.Signature of the Java Cryptography Architecture. :since: 2.3 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureComponent.java b/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureComponent.java index 325cf2501b43..c0676ffed8d1 100644 --- a/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureComponent.java +++ b/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureComponent.java @@ -30,7 +30,9 @@ import org.apache.camel.util.ObjectHelper; @Component("crypto") public class DigitalSignatureComponent extends DefaultComponent { - @Metadata(label = "advanced") + @Metadata(label = "advanced", + description = "The configuration with the default options of all endpoints. Each endpoint gets a copy of it," + + " and the options of the endpoint change only that copy.") private DigitalSignatureConfiguration configuration = new DigitalSignatureConfiguration(); public DigitalSignatureComponent() { @@ -64,9 +66,6 @@ public class DigitalSignatureComponent extends DefaultComponent { return configuration; } - /** - * To use the shared DigitalSignatureConfiguration as configuration - */ public void setConfiguration(DigitalSignatureConfiguration configuration) { this.configuration = configuration; } diff --git a/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConfiguration.java b/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConfiguration.java index 67ea670b1edb..28e38a380c6c 100644 --- a/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConfiguration.java +++ b/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConfiguration.java @@ -37,49 +37,85 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa private CamelContext context; - @UriPath + @UriPath(description = "The operation: sign creates a signature of the message body, and verify checks the signature of" + + " the message body. It is the part of the URI after crypto:, as in crypto:sign:name.") @Metadata(required = true) private CryptoOperation cryptoOperation; - @UriPath + @UriPath(description = "A name of your choice that tells the endpoints apart, as in crypto:sign:name. The component does" + + " not use it.") @Metadata(required = true) private String name; - @UriParam(security = "secret") + @UriParam(description = "The private key that the sign operation signs with. A private key found in the keystore under the" + + " alias is used instead. The verify operation does not use it.", + security = "secret") private PrivateKey privateKey; - @UriParam(label = "advanced") + @UriParam(description = "The KeyStoreParameters (resource, type, password and provider of the keystore) that create the" + + " keystore of the keystore option. The keystore is loaded when this option is set.", + label = "advanced") private KeyStoreParameters keyStoreParameters; - @UriParam + @UriParam(description = "The keystore that holds the private key for the sign operation and the certificate for the verify" + + " operation. The alias option selects the entry, or the only entry is used when the keystore" + + " holds exactly one. An entry found in the keystore is used instead of the privateKey," + + " certificate and publicKey options.") private KeyStore keystore; - @UriParam(label = "advanced", security = "secret") + @UriParam(description = "The java.security.SecureRandom that the sign operation passes to Signature.initSign. If not set," + + " the signature provider uses its own source of randomness.", + label = "advanced", security = "secret") private SecureRandom secureRandom; - @UriParam(defaultValue = "SHA256withRSA") + @UriParam(description = "The standard name of the signature algorithm of the Java Cryptography Architecture, for example" + + " SHA256withRSA or SHA256withECDSA. It must match the type of the key, and the sign and verify" + + " endpoints must use the same algorithm.", + defaultValue = "SHA256withRSA") private String algorithm = "SHA256withRSA"; - @UriParam(label = "advanced", defaultValue = "" + 2048) + @UriParam(description = "The size in bytes of the buffer that reads the message body into the signature. It must be at" + + " least 1.", + label = "advanced", defaultValue = "" + 2048) private Integer bufferSize = 2048; - @UriParam + @UriParam(description = "The name of the security provider that provides the signature algorithm, for example BC for" + + " Bouncy Castle. The provider must be installed. If not set, the first installed provider that" + + " supports the algorithm is used.") private String provider; - @UriParam + @UriParam(description = "The name of the header in which the sign operation stores the Base64 encoded signature, and from" + + " which the verify operation reads it. If not set, CamelDigitalSignature is used.") private String signatureHeaderName; - @UriParam + @UriParam(description = "The alias of the keystore entry: the sign operation signs with its private key, and the verify" + + " operation verifies with its certificate. If not set and the keystore holds exactly one entry," + + " that entry is used.") private String alias; - @UriParam(label = "security", security = "secret") + @UriParam(description = "The password of the private key entry in the keystore, which the sign operation needs to read the" + + " key. It is not the password of the keystore itself.", + label = "security", security = "secret") private String password; - @UriParam(label = "advanced") + @UriParam(description = "The public key that the verify operation checks the signature with, when neither the keystore nor" + + " the certificate option gives a certificate. The sign operation does not use it.", + label = "advanced") private PublicKey publicKey; - @UriParam(label = "advanced") + @UriParam(description = "The certificate whose public key the verify operation checks the signature with. A certificate" + + " found in the keystore under the alias is used instead, and this option is used instead of the" + + " publicKey option.", + label = "advanced") private Certificate certificate; - /** references that should be resolved when the context changes */ - @UriParam + @UriParam(description = "The name of a java.security.PublicKey bean in the registry to use as the publicKey option. A name" + + " with no such bean is ignored.") private String publicKeyName; - @UriParam + @UriParam(description = "The name of a java.security.cert.Certificate bean in the registry to use as the certificate" + + " option. A name with no such bean is ignored.") private String certificateName; - @UriParam(security = "secret") + @UriParam(description = "The name of a java.security.PrivateKey bean in the registry to use as the privateKey option. A" + + " name with no such bean is ignored.", + security = "secret") private String privateKeyName; - @UriParam + @UriParam(description = "The name of a java.security.KeyStore bean in the registry to use as the keystore option. A name" + + " with no such bean is ignored.") private String keystoreName; - @UriParam + @UriParam(description = "The name of a java.security.SecureRandom bean in the registry to use as the secureRandom option." + + " A name with no such bean is ignored.") private String secureRandomName; - @UriParam(label = "advanced", defaultValue = "true") + @UriParam(description = "Whether to remove the headers whose names start with CamelSignature or CamelDigitalSignature" + + " after the operation succeeds. The sign operation removes them before it sets the signature" + + " header, and the verify operation also removes the signature header when its name matches.", + label = "advanced", defaultValue = "true") private boolean clearHeaders = true; public DigitalSignatureConfiguration copy() { @@ -111,9 +147,6 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa return name; } - /** - * The logical name of this operation. - */ public void setName(String name) { this.name = name; } @@ -125,9 +158,6 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa return algorithm; } - /** - * Sets the JCE name of the Algorithm that should be used for the signer. - */ public void setAlgorithm(String algorithm) { this.algorithm = algorithm; } @@ -141,11 +171,6 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa return alias; } - /** - * Sets the alias used to query the KeyStore for keys and {@link java.security.cert.Certificate Certificates} to be - * used in signing and verifying exchanges. This value can be provided at runtime via the message header - * {@link org.apache.camel.component.crypto.DigitalSignatureConstants#KEYSTORE_ALIAS} - */ public void setAlias(String alias) { this.alias = alias; } @@ -186,11 +211,6 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa return pk; } - /** - * Set the PrivateKey that should be used to sign the exchange - * - * @param privateKey the key with which to sign the exchange. - */ public void setPrivateKey(PrivateKey privateKey) { this.privateKey = privateKey; } @@ -199,9 +219,6 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa return privateKeyName; } - /** - * Sets the reference name for a PrivateKey that can be found in the registry. - */ public void setPrivateKeyName(String privateKeyName) { if (context != null && privateKeyName != null) { PrivateKey pk = context.getRegistry().lookupByNameAndType(privateKeyName, PrivateKey.class); @@ -214,9 +231,6 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa } } - /** - * Set the PublicKey that should be used to verify the signature in the exchange. - */ public void setPublicKey(PublicKey publicKey) { this.publicKey = publicKey; } @@ -225,9 +239,6 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa return publicKeyName; } - /** - * Sets the reference name for a publicKey that can be found in the registry. - */ public void setPublicKeyName(String publicKeyName) { if (context != null && publicKeyName != null) { PublicKey pk = context.getRegistry().lookupByNameAndType(publicKeyName, PublicKey.class); @@ -272,9 +283,6 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa return certificate; } - /** - * Set the Certificate that should be used to verify the signature in the exchange based on its payload. - */ public void setCertificate(Certificate certificate) { this.certificate = certificate; } @@ -283,9 +291,6 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa return certificateName; } - /** - * Sets the reference name for a Certificate that can be found in the registry. - */ public void setCertificateName(String certificateName) { if (context != null && certificateName != null) { Certificate certificate = context.getRegistry().lookupByNameAndType(certificateName, Certificate.class); @@ -308,12 +313,6 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa return keystore; } - /** - * Sets the KeyStore that can contain keys and Certificates for use in signing and verifying exchanges. A - * {@link KeyStore} is typically used with an alias, either one supplied in the Route definition or dynamically via - * the message header "CamelSignatureKeyStoreAlias". If no alias is supplied and there is only a single entry in the - * Keystore, then this single entry will be used. - */ public void setKeystore(KeyStore keystore) { this.keystore = keystore; } @@ -322,9 +321,6 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa return keystoreName; } - /** - * Sets the reference name for a Keystore that can be found in the registry. - */ public void setKeystoreName(String keystoreName) { if (context != null && keystoreName != null) { KeyStore keystore = context.getRegistry().lookupByNameAndType(keystoreName, KeyStore.class); @@ -344,9 +340,6 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa return password; } - /** - * Sets the password used to access an aliased {@link PrivateKey} in the KeyStore. - */ public void setPassword(String password) { this.password = password; } @@ -355,12 +348,6 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa return keyStoreParameters; } - /** - * Sets the KeyStore that can contain keys and Certificates for use in signing and verifying exchanges based on the - * given KeyStoreParameters. A {@link KeyStore} is typically used with an alias, either one supplied in the Route - * definition or dynamically via the message header "CamelSignatureKeyStoreAlias". If no alias is supplied and there - * is only a single entry in the Keystore, then this single entry will be used. - */ public void setKeyStoreParameters(KeyStoreParameters keyStoreParameters) { this.keyStoreParameters = keyStoreParameters; if (keyStoreParameters != null) { @@ -383,9 +370,6 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa return secureRandomName; } - /** - * Sets the reference name for a SecureRandom that can be found in the registry. - */ public void setSecureRandomName(String randomName) { if (context != null && randomName != null) { SecureRandom random = context.getRegistry().lookupByNameAndType(randomName, SecureRandom.class); @@ -398,11 +382,6 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa } } - /** - * Set the SecureRandom used to initialize the Signature service - * - * @param secureRandom the random used to init the Signature service - */ public void setSecureRandom(SecureRandom secureRandom) { this.secureRandom = secureRandom; } @@ -414,9 +393,6 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa return bufferSize; } - /** - * Set the size of the buffer used to read in the Exchange payload data. - */ public void setBufferSize(Integer bufferSize) { this.bufferSize = bufferSize; } @@ -428,11 +404,6 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa return provider; } - /** - * Set the id of the security provider that provides the configured {@link Signature} algorithm. - * - * @param provider the id of the security provider - */ public void setProvider(String provider) { this.provider = provider; } @@ -445,10 +416,6 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa return signatureHeaderName != null ? signatureHeaderName : DigitalSignatureConstants.SIGNATURE; } - /** - * Set the name of the message header that should be used to store the base64 encoded signature. This defaults to - * 'CamelDigitalSignature' - */ public void setSignatureHeaderName(String signatureHeaderName) { this.signatureHeaderName = signatureHeaderName; } @@ -464,21 +431,10 @@ public class DigitalSignatureConfiguration implements Cloneable, CamelContextAwa return clearHeaders; } - /** - * Determines if the Signature specific headers be cleared after signing and verification. Defaults to true, and - * should only be made otherwise at your extreme peril as vital private information such as Keys and passwords may - * escape if unset. - */ public void setClearHeaders(boolean clearHeaders) { this.clearHeaders = clearHeaders; } - /** - * Set the Crypto operation from that supplied after the crypto scheme in the endpoint uri e.g. crypto:sign sets - * sign as the operation. - * - * @param operation the operation supplied after the crypto scheme - */ public void setCryptoOperation(String operation) { this.cryptoOperation = CryptoOperation.valueOf(operation); } diff --git a/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureEndpoint.java b/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureEndpoint.java index f840a0d31b5f..8c6180f4816d 100644 --- a/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureEndpoint.java +++ b/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureEndpoint.java @@ -36,7 +36,7 @@ import org.apache.camel.spi.UriParam; import org.apache.camel.support.DefaultEndpoint; /** - * Sign and verify exchanges using the Signature Service of the Java Cryptographic Extension (JCE). + * Sign message bodies and verify their signatures with java.security.Signature of the Java Cryptography Architecture. */ @UriEndpoint(firstVersion = "2.3.0", scheme = "crypto", title = "Crypto (JCE)", syntax = "crypto:cryptoOperation:name", remote = false, producerOnly = true, category = { Category.SECURITY, Category.TRANSFORMATION }, diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java index 5dfece1dc071..296ee3f601a1 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java @@ -1395,8 +1395,8 @@ public interface ComponentsBuilderFactory { } /** * Crypto (JCE) (camel-crypto) - * Sign and verify exchanges using the Signature Service of the Java - * Cryptographic Extension (JCE). + * Sign message bodies and verify their signatures with + * java.security.Signature of the Java Cryptography Architecture. * * Category: security,transformation * Since: 2.3 diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CryptoComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CryptoComponentBuilderFactory.java index 0bcb94acafef..3aebada50a80 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CryptoComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CryptoComponentBuilderFactory.java @@ -24,8 +24,8 @@ import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.crypto.DigitalSignatureComponent; /** - * Sign and verify exchanges using the Signature Service of the Java - * Cryptographic Extension (JCE). + * Sign message bodies and verify their signatures with java.security.Signature + * of the Java Cryptography Architecture. * * Generated by camel build tools - do NOT edit this file! */ @@ -34,8 +34,8 @@ public interface CryptoComponentBuilderFactory { /** * Crypto (JCE) (camel-crypto) - * Sign and verify exchanges using the Signature Service of the Java - * Cryptographic Extension (JCE). + * Sign message bodies and verify their signatures with + * java.security.Signature of the Java Cryptography Architecture. * * Category: security,transformation * Since: 2.3 @@ -54,8 +54,10 @@ public interface CryptoComponentBuilderFactory { /** - * Sets the JCE name of the Algorithm that should be used for the - * signer. + * The standard name of the signature algorithm of the Java Cryptography + * Architecture, for example SHA256withRSA or SHA256withECDSA. It must + * match the type of the key, and the sign and verify endpoints must use + * the same algorithm. * * The option is a: <code>java.lang.String</code> type. * @@ -71,11 +73,10 @@ public interface CryptoComponentBuilderFactory { } /** - * Sets the alias used to query the KeyStore for keys and {link - * java.security.cert.Certificate Certificates} to be used in signing - * and verifying exchanges. This value can be provided at runtime via - * the message header - * org.apache.camel.component.crypto.DigitalSignatureConstants#KEYSTORE_ALIAS. + * The alias of the keystore entry: the sign operation signs with its + * private key, and the verify operation verifies with its certificate. + * If not set and the keystore holds exactly one entry, that entry is + * used. * * The option is a: <code>java.lang.String</code> type. * @@ -90,8 +91,8 @@ public interface CryptoComponentBuilderFactory { } /** - * Sets the reference name for a Certificate that can be found in the - * registry. + * The name of a java.security.cert.Certificate bean in the registry to + * use as the certificate option. A name with no such bean is ignored. * * The option is a: <code>java.lang.String</code> type. * @@ -106,12 +107,11 @@ public interface CryptoComponentBuilderFactory { } /** - * Sets the KeyStore that can contain keys and Certificates for use in - * signing and verifying exchanges. A KeyStore is typically used with an - * alias, either one supplied in the Route definition or dynamically via - * the message header CamelSignatureKeyStoreAlias. If no alias is - * supplied and there is only a single entry in the Keystore, then this - * single entry will be used. + * The keystore that holds the private key for the sign operation and + * the certificate for the verify operation. The alias option selects + * the entry, or the only entry is used when the keystore holds exactly + * one. An entry found in the keystore is used instead of the + * privateKey, certificate and publicKey options. * * The option is a: <code>java.security.KeyStore</code> * type. @@ -127,8 +127,8 @@ public interface CryptoComponentBuilderFactory { } /** - * Sets the reference name for a Keystore that can be found in the - * registry. + * The name of a java.security.KeyStore bean in the registry to use as + * the keystore option. A name with no such bean is ignored. * * The option is a: <code>java.lang.String</code> type. * @@ -168,7 +168,9 @@ public interface CryptoComponentBuilderFactory { } /** - * Set the PrivateKey that should be used to sign the exchange. + * The private key that the sign operation signs with. A private key + * found in the keystore under the alias is used instead. The verify + * operation does not use it. * * The option is a: <code>java.security.PrivateKey</code> * type. @@ -184,8 +186,8 @@ public interface CryptoComponentBuilderFactory { } /** - * Sets the reference name for a PrivateKey that can be found in the - * registry. + * The name of a java.security.PrivateKey bean in the registry to use as + * the privateKey option. A name with no such bean is ignored. * * The option is a: <code>java.lang.String</code> type. * @@ -200,8 +202,10 @@ public interface CryptoComponentBuilderFactory { } /** - * Set the id of the security provider that provides the configured - * Signature algorithm. + * The name of the security provider that provides the signature + * algorithm, for example BC for Bouncy Castle. The provider must be + * installed. If not set, the first installed provider that supports the + * algorithm is used. * * The option is a: <code>java.lang.String</code> type. * @@ -216,7 +220,8 @@ public interface CryptoComponentBuilderFactory { } /** - * references that should be resolved when the context changes. + * The name of a java.security.PublicKey bean in the registry to use as + * the publicKey option. A name with no such bean is ignored. * * The option is a: <code>java.lang.String</code> type. * @@ -231,8 +236,8 @@ public interface CryptoComponentBuilderFactory { } /** - * Sets the reference name for a SecureRandom that can be found in the - * registry. + * The name of a java.security.SecureRandom bean in the registry to use + * as the secureRandom option. A name with no such bean is ignored. * * The option is a: <code>java.lang.String</code> type. * @@ -247,8 +252,9 @@ public interface CryptoComponentBuilderFactory { } /** - * Set the name of the message header that should be used to store the - * base64 encoded signature. This defaults to 'CamelDigitalSignature'. + * The name of the header in which the sign operation stores the Base64 + * encoded signature, and from which the verify operation reads it. If + * not set, CamelDigitalSignature is used. * * The option is a: <code>java.lang.String</code> type. * @@ -286,7 +292,8 @@ public interface CryptoComponentBuilderFactory { /** - * Set the size of the buffer used to read in the Exchange payload data. + * The size in bytes of the buffer that reads the message body into the + * signature. It must be at least 1. * * The option is a: <code>java.lang.Integer</code> type. * @@ -302,8 +309,10 @@ public interface CryptoComponentBuilderFactory { } /** - * Set the Certificate that should be used to verify the signature in - * the exchange based on its payload. + * The certificate whose public key the verify operation checks the + * signature with. A certificate found in the keystore under the alias + * is used instead, and this option is used instead of the publicKey + * option. * * The option is a: * <code>java.security.cert.Certificate</code> type. @@ -320,10 +329,11 @@ public interface CryptoComponentBuilderFactory { /** - * Determines if the Signature specific headers be cleared after signing - * and verification. Defaults to true, and should only be made otherwise - * at your extreme peril as vital private information such as Keys and - * passwords may escape if unset. + * Whether to remove the headers whose names start with CamelSignature + * or CamelDigitalSignature after the operation succeeds. The sign + * operation removes them before it sets the signature header, and the + * verify operation also removes the signature header when its name + * matches. * * The option is a: <code>boolean</code> type. * @@ -339,7 +349,9 @@ public interface CryptoComponentBuilderFactory { } /** - * To use the shared DigitalSignatureConfiguration as configuration. + * The configuration with the default options of all endpoints. Each + * endpoint gets a copy of it, and the options of the endpoint change + * only that copy. * * The option is a: * <code>org.apache.camel.component.crypto.DigitalSignatureConfiguration</code> type. @@ -355,13 +367,9 @@ public interface CryptoComponentBuilderFactory { } /** - * Sets the KeyStore that can contain keys and Certificates for use in - * signing and verifying exchanges based on the given - * KeyStoreParameters. A KeyStore is typically used with an alias, - * either one supplied in the Route definition or dynamically via the - * message header CamelSignatureKeyStoreAlias. If no alias is supplied - * and there is only a single entry in the Keystore, then this single - * entry will be used. + * The KeyStoreParameters (resource, type, password and provider of the + * keystore) that create the keystore of the keystore option. The + * keystore is loaded when this option is set. * * The option is a: * <code>org.apache.camel.support.jsse.KeyStoreParameters</code> type. @@ -377,8 +385,9 @@ public interface CryptoComponentBuilderFactory { } /** - * Set the PublicKey that should be used to verify the signature in the - * exchange. + * The public key that the verify operation checks the signature with, + * when neither the keystore nor the certificate option gives a + * certificate. The sign operation does not use it. * * The option is a: <code>java.security.PublicKey</code> * type. @@ -394,7 +403,9 @@ public interface CryptoComponentBuilderFactory { } /** - * Set the SecureRandom used to initialize the Signature service. + * The java.security.SecureRandom that the sign operation passes to + * Signature.initSign. If not set, the signature provider uses its own + * source of randomness. * * The option is a: <code>java.security.SecureRandom</code> * type. @@ -410,8 +421,9 @@ public interface CryptoComponentBuilderFactory { } /** - * Sets the password used to access an aliased PrivateKey in the - * KeyStore. + * The password of the private key entry in the keystore, which the sign + * operation needs to read the key. It is not the password of the + * keystore itself. * * The option is a: <code>java.lang.String</code> type. * diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java index 54407192582e..2e95820ec2c8 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java @@ -1146,8 +1146,8 @@ public class EndpointHeaderBuilders { } /** * Crypto (JCE) (camel-crypto) - * Sign and verify exchanges using the Signature Service of the Java - * Cryptographic Extension (JCE). + * Sign message bodies and verify their signatures with + * java.security.Signature of the Java Cryptography Architecture. * * Category: security,transformation * Since: 2.3 diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java index b89ff2a792f8..74e7bccfb06c 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java @@ -4592,8 +4592,8 @@ public class StaticEndpointBuilders { } /** * Crypto (JCE) (camel-crypto) - * Sign and verify exchanges using the Signature Service of the Java - * Cryptographic Extension (JCE). + * Sign message bodies and verify their signatures with + * java.security.Signature of the Java Cryptography Architecture. * * Category: security,transformation * Since: 2.3 @@ -4602,12 +4602,14 @@ public class StaticEndpointBuilders { * Syntax: <code>crypto:cryptoOperation:name</code> * * Path parameter: cryptoOperation (required) - * Set the Crypto operation from that supplied after the crypto scheme in - * the endpoint uri e.g. crypto:sign sets sign as the operation. + * The operation: sign creates a signature of the message body, and verify + * checks the signature of the message body. It is the part of the URI after + * crypto:, as in crypto:sign:name. * There are 2 enums and the value can be one of: sign, verify * * Path parameter: name (required) - * The logical name of this operation. + * A name of your choice that tells the endpoints apart, as in + * crypto:sign:name. The component does not use it. * * @param path cryptoOperation:name * @return the dsl builder @@ -4617,8 +4619,8 @@ public class StaticEndpointBuilders { } /** * Crypto (JCE) (camel-crypto) - * Sign and verify exchanges using the Signature Service of the Java - * Cryptographic Extension (JCE). + * Sign message bodies and verify their signatures with + * java.security.Signature of the Java Cryptography Architecture. * * Category: security,transformation * Since: 2.3 @@ -4627,12 +4629,14 @@ public class StaticEndpointBuilders { * Syntax: <code>crypto:cryptoOperation:name</code> * * Path parameter: cryptoOperation (required) - * Set the Crypto operation from that supplied after the crypto scheme in - * the endpoint uri e.g. crypto:sign sets sign as the operation. + * The operation: sign creates a signature of the message body, and verify + * checks the signature of the message body. It is the part of the URI after + * crypto:, as in crypto:sign:name. * There are 2 enums and the value can be one of: sign, verify * * Path parameter: name (required) - * The logical name of this operation. + * A name of your choice that tells the endpoints apart, as in + * crypto:sign:name. The component does not use it. * * @param componentName to use a custom component name for the endpoint * instead of the default name diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DigitalSignatureEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DigitalSignatureEndpointBuilderFactory.java index 0d5cb906ce53..8bba952c6798 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DigitalSignatureEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DigitalSignatureEndpointBuilderFactory.java @@ -27,8 +27,8 @@ import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; /** - * Sign and verify exchanges using the Signature Service of the Java - * Cryptographic Extension (JCE). + * Sign message bodies and verify their signatures with java.security.Signature + * of the Java Cryptography Architecture. * * Generated by camel build tools - do NOT edit this file! */ @@ -46,8 +46,10 @@ public interface DigitalSignatureEndpointBuilderFactory { } /** - * Sets the JCE name of the Algorithm that should be used for the - * signer. + * The standard name of the signature algorithm of the Java Cryptography + * Architecture, for example SHA256withRSA or SHA256withECDSA. It must + * match the type of the key, and the sign and verify endpoints must use + * the same algorithm. * * The option is a: <code>java.lang.String</code> type. * @@ -62,11 +64,10 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Sets the alias used to query the KeyStore for keys and {link - * java.security.cert.Certificate Certificates} to be used in signing - * and verifying exchanges. This value can be provided at runtime via - * the message header - * org.apache.camel.component.crypto.DigitalSignatureConstants#KEYSTORE_ALIAS. + * The alias of the keystore entry: the sign operation signs with its + * private key, and the verify operation verifies with its certificate. + * If not set and the keystore holds exactly one entry, that entry is + * used. * * The option is a: <code>java.lang.String</code> type. * @@ -80,8 +81,8 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Sets the reference name for a Certificate that can be found in the - * registry. + * The name of a java.security.cert.Certificate bean in the registry to + * use as the certificate option. A name with no such bean is ignored. * * The option is a: <code>java.lang.String</code> type. * @@ -95,12 +96,11 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Sets the KeyStore that can contain keys and Certificates for use in - * signing and verifying exchanges. A KeyStore is typically used with an - * alias, either one supplied in the Route definition or dynamically via - * the message header CamelSignatureKeyStoreAlias. If no alias is - * supplied and there is only a single entry in the Keystore, then this - * single entry will be used. + * The keystore that holds the private key for the sign operation and + * the certificate for the verify operation. The alias option selects + * the entry, or the only entry is used when the keystore holds exactly + * one. An entry found in the keystore is used instead of the + * privateKey, certificate and publicKey options. * * The option is a: <code>java.security.KeyStore</code> type. * @@ -114,12 +114,11 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Sets the KeyStore that can contain keys and Certificates for use in - * signing and verifying exchanges. A KeyStore is typically used with an - * alias, either one supplied in the Route definition or dynamically via - * the message header CamelSignatureKeyStoreAlias. If no alias is - * supplied and there is only a single entry in the Keystore, then this - * single entry will be used. + * The keystore that holds the private key for the sign operation and + * the certificate for the verify operation. The alias option selects + * the entry, or the only entry is used when the keystore holds exactly + * one. An entry found in the keystore is used instead of the + * privateKey, certificate and publicKey options. * * The option will be converted to a <code>java.security.KeyStore</code> * type. @@ -134,8 +133,8 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Sets the reference name for a Keystore that can be found in the - * registry. + * The name of a java.security.KeyStore bean in the registry to use as + * the keystore option. A name with no such bean is ignored. * * The option is a: <code>java.lang.String</code> type. * @@ -149,7 +148,9 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Set the PrivateKey that should be used to sign the exchange. + * The private key that the sign operation signs with. A private key + * found in the keystore under the alias is used instead. The verify + * operation does not use it. * * The option is a: <code>java.security.PrivateKey</code> type. * @@ -163,7 +164,9 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Set the PrivateKey that should be used to sign the exchange. + * The private key that the sign operation signs with. A private key + * found in the keystore under the alias is used instead. The verify + * operation does not use it. * * The option will be converted to a * <code>java.security.PrivateKey</code> type. @@ -178,8 +181,8 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Sets the reference name for a PrivateKey that can be found in the - * registry. + * The name of a java.security.PrivateKey bean in the registry to use as + * the privateKey option. A name with no such bean is ignored. * * The option is a: <code>java.lang.String</code> type. * @@ -193,8 +196,10 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Set the id of the security provider that provides the configured - * Signature algorithm. + * The name of the security provider that provides the signature + * algorithm, for example BC for Bouncy Castle. The provider must be + * installed. If not set, the first installed provider that supports the + * algorithm is used. * * The option is a: <code>java.lang.String</code> type. * @@ -208,7 +213,8 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * references that should be resolved when the context changes. + * The name of a java.security.PublicKey bean in the registry to use as + * the publicKey option. A name with no such bean is ignored. * * The option is a: <code>java.lang.String</code> type. * @@ -222,8 +228,8 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Sets the reference name for a SecureRandom that can be found in the - * registry. + * The name of a java.security.SecureRandom bean in the registry to use + * as the secureRandom option. A name with no such bean is ignored. * * The option is a: <code>java.lang.String</code> type. * @@ -237,8 +243,9 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Set the name of the message header that should be used to store the - * base64 encoded signature. This defaults to 'CamelDigitalSignature'. + * The name of the header in which the sign operation stores the Base64 + * encoded signature, and from which the verify operation reads it. If + * not set, CamelDigitalSignature is used. * * The option is a: <code>java.lang.String</code> type. * @@ -252,8 +259,9 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Sets the password used to access an aliased PrivateKey in the - * KeyStore. + * The password of the private key entry in the keystore, which the sign + * operation needs to read the key. It is not the password of the + * keystore itself. * * The option is a: <code>java.lang.String</code> type. * @@ -325,7 +333,8 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Set the size of the buffer used to read in the Exchange payload data. + * The size in bytes of the buffer that reads the message body into the + * signature. It must be at least 1. * * The option is a: <code>java.lang.Integer</code> type. * @@ -340,7 +349,8 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Set the size of the buffer used to read in the Exchange payload data. + * The size in bytes of the buffer that reads the message body into the + * signature. It must be at least 1. * * The option will be converted to a <code>java.lang.Integer</code> * type. @@ -356,8 +366,10 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Set the Certificate that should be used to verify the signature in - * the exchange based on its payload. + * The certificate whose public key the verify operation checks the + * signature with. A certificate found in the keystore under the alias + * is used instead, and this option is used instead of the publicKey + * option. * * The option is a: <code>java.security.cert.Certificate</code> type. * @@ -371,8 +383,10 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Set the Certificate that should be used to verify the signature in - * the exchange based on its payload. + * The certificate whose public key the verify operation checks the + * signature with. A certificate found in the keystore under the alias + * is used instead, and this option is used instead of the publicKey + * option. * * The option will be converted to a * <code>java.security.cert.Certificate</code> type. @@ -387,10 +401,11 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Determines if the Signature specific headers be cleared after signing - * and verification. Defaults to true, and should only be made otherwise - * at your extreme peril as vital private information such as Keys and - * passwords may escape if unset. + * Whether to remove the headers whose names start with CamelSignature + * or CamelDigitalSignature after the operation succeeds. The sign + * operation removes them before it sets the signature header, and the + * verify operation also removes the signature header when its name + * matches. * * The option is a: <code>boolean</code> type. * @@ -405,10 +420,11 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Determines if the Signature specific headers be cleared after signing - * and verification. Defaults to true, and should only be made otherwise - * at your extreme peril as vital private information such as Keys and - * passwords may escape if unset. + * Whether to remove the headers whose names start with CamelSignature + * or CamelDigitalSignature after the operation succeeds. The sign + * operation removes them before it sets the signature header, and the + * verify operation also removes the signature header when its name + * matches. * * The option will be converted to a <code>boolean</code> type. * @@ -423,13 +439,9 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Sets the KeyStore that can contain keys and Certificates for use in - * signing and verifying exchanges based on the given - * KeyStoreParameters. A KeyStore is typically used with an alias, - * either one supplied in the Route definition or dynamically via the - * message header CamelSignatureKeyStoreAlias. If no alias is supplied - * and there is only a single entry in the Keystore, then this single - * entry will be used. + * The KeyStoreParameters (resource, type, password and provider of the + * keystore) that create the keystore of the keystore option. The + * keystore is loaded when this option is set. * * The option is a: * <code>org.apache.camel.support.jsse.KeyStoreParameters</code> type. @@ -444,13 +456,9 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Sets the KeyStore that can contain keys and Certificates for use in - * signing and verifying exchanges based on the given - * KeyStoreParameters. A KeyStore is typically used with an alias, - * either one supplied in the Route definition or dynamically via the - * message header CamelSignatureKeyStoreAlias. If no alias is supplied - * and there is only a single entry in the Keystore, then this single - * entry will be used. + * The KeyStoreParameters (resource, type, password and provider of the + * keystore) that create the keystore of the keystore option. The + * keystore is loaded when this option is set. * * The option will be converted to a * <code>org.apache.camel.support.jsse.KeyStoreParameters</code> type. @@ -465,8 +473,9 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Set the PublicKey that should be used to verify the signature in the - * exchange. + * The public key that the verify operation checks the signature with, + * when neither the keystore nor the certificate option gives a + * certificate. The sign operation does not use it. * * The option is a: <code>java.security.PublicKey</code> type. * @@ -480,8 +489,9 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Set the PublicKey that should be used to verify the signature in the - * exchange. + * The public key that the verify operation checks the signature with, + * when neither the keystore nor the certificate option gives a + * certificate. The sign operation does not use it. * * The option will be converted to a * <code>java.security.PublicKey</code> type. @@ -496,7 +506,9 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Set the SecureRandom used to initialize the Signature service. + * The java.security.SecureRandom that the sign operation passes to + * Signature.initSign. If not set, the signature provider uses its own + * source of randomness. * * The option is a: <code>java.security.SecureRandom</code> type. * @@ -510,7 +522,9 @@ public interface DigitalSignatureEndpointBuilderFactory { return this; } /** - * Set the SecureRandom used to initialize the Signature service. + * The java.security.SecureRandom that the sign operation passes to + * Signature.initSign. If not set, the signature provider uses its own + * source of randomness. * * The option will be converted to a * <code>java.security.SecureRandom</code> type. @@ -529,8 +543,8 @@ public interface DigitalSignatureEndpointBuilderFactory { public interface DigitalSignatureBuilders { /** * Crypto (JCE) (camel-crypto) - * Sign and verify exchanges using the Signature Service of the Java - * Cryptographic Extension (JCE). + * Sign message bodies and verify their signatures with + * java.security.Signature of the Java Cryptography Architecture. * * Category: security,transformation * Since: 2.3 @@ -543,8 +557,8 @@ public interface DigitalSignatureEndpointBuilderFactory { } /** * Crypto (JCE) (camel-crypto) - * Sign and verify exchanges using the Signature Service of the Java - * Cryptographic Extension (JCE). + * Sign message bodies and verify their signatures with + * java.security.Signature of the Java Cryptography Architecture. * * Category: security,transformation * Since: 2.3 @@ -553,12 +567,14 @@ public interface DigitalSignatureEndpointBuilderFactory { * Syntax: <code>crypto:cryptoOperation:name</code> * * Path parameter: cryptoOperation (required) - * Set the Crypto operation from that supplied after the crypto scheme - * in the endpoint uri e.g. crypto:sign sets sign as the operation. + * The operation: sign creates a signature of the message body, and + * verify checks the signature of the message body. It is the part of + * the URI after crypto:, as in crypto:sign:name. * There are 2 enums and the value can be one of: sign, verify * * Path parameter: name (required) - * The logical name of this operation. + * A name of your choice that tells the endpoints apart, as in + * crypto:sign:name. The component does not use it. * * @param path cryptoOperation:name * @return the dsl builder @@ -568,8 +584,8 @@ public interface DigitalSignatureEndpointBuilderFactory { } /** * Crypto (JCE) (camel-crypto) - * Sign and verify exchanges using the Signature Service of the Java - * Cryptographic Extension (JCE). + * Sign message bodies and verify their signatures with + * java.security.Signature of the Java Cryptography Architecture. * * Category: security,transformation * Since: 2.3 @@ -578,12 +594,14 @@ public interface DigitalSignatureEndpointBuilderFactory { * Syntax: <code>crypto:cryptoOperation:name</code> * * Path parameter: cryptoOperation (required) - * Set the Crypto operation from that supplied after the crypto scheme - * in the endpoint uri e.g. crypto:sign sets sign as the operation. + * The operation: sign creates a signature of the message body, and + * verify checks the signature of the message body. It is the part of + * the URI after crypto:, as in crypto:sign:name. * There are 2 enums and the value can be one of: sign, verify * * Path parameter: name (required) - * The logical name of this operation. + * A name of your choice that tells the endpoints apart, as in + * crypto:sign:name. The component does not use it. * * @param componentName to use a custom component name for the endpoint * instead of the default name diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md index 6977d9a047d2..9c03b48099b1 100644 --- a/tasks/component-descriptions.md +++ b/tasks/component-descriptions.md @@ -141,7 +141,7 @@ or removes its row. | camel-couchbase | couchbase | | | camel-couchdb | couchdb | | | camel-cron | cron | yes | -| camel-crypto | crypto | | +| camel-crypto | crypto | yes | | camel-cxf-rest | cxfrs | yes | | camel-cxf-soap | cxf | yes | | camel-cyberark-vault | cyberark-vault | yes |
