Skip to content

Commit

Permalink
Separated PGPDataFormat into camel-cypto-pgp
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Jun 26, 2024
1 parent 4ebc79c commit 76cbfe0
Show file tree
Hide file tree
Showing 14 changed files with 412 additions and 111 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"javaType": "org.apache.camel.converter.crypto.PGPDataFormat",
"supportLevel": "Stable",
"groupId": "org.apache.camel.springboot",
"artifactId": "camel-crypto-starter",
"artifactId": "camel-crypto-pgp-starter",
"version": "4.7.0-SNAPSHOT",
"modelName": "pgp",
"modelJavaType": "org.apache.camel.model.dataformat.PGPDataFormat"
Expand Down
48 changes: 48 additions & 0 deletions components-starter/camel-crypto-pgp-starter/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>components-starter</artifactId>
<version>4.7.0-SNAPSHOT</version>
</parent>
<artifactId>camel-crypto-pgp-starter</artifactId>
<packaging>jar</packaging>
<name>Camel SB Starters :: Crypto PGP</name>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>${spring-boot-version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-crypto-pgp</artifactId>
<version>${camel-version}</version>
</dependency>
<!--START OF GENERATED CODE-->
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-core-starter</artifactId>
</dependency>
<!--END OF GENERATED CODE-->
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"groups": [
{
"name": "camel.dataformat.pgp",
"type": "org.apache.camel.converter.crypto.springboot.PGPDataFormatConfiguration",
"sourceType": "org.apache.camel.converter.crypto.springboot.PGPDataFormatConfiguration"
},
{
"name": "camel.dataformat.pgp.customizer",
"type": "org.apache.camel.spring.boot.DataFormatConfigurationPropertiesCommon$CustomizerProperties",
"sourceType": "org.apache.camel.converter.crypto.springboot.PGPDataFormatConfiguration",
"sourceMethod": "getCustomizer()"
}
],
"properties": [
{
"name": "camel.dataformat.pgp.algorithm",
"type": "java.lang.Integer",
"description": "Symmetric key encryption algorithm; possible values are defined in org.bouncycastle.bcpg.SymmetricKeyAlgorithmTags; for example 2 (= TRIPLE DES), 3 (= CAST5), 4 (= BLOWFISH), 6 (= DES), 7 (= AES_128). Only relevant for encrypting.",
"sourceType": "org.apache.camel.converter.crypto.springboot.PGPDataFormatConfiguration"
},
{
"name": "camel.dataformat.pgp.armored",
"type": "java.lang.Boolean",
"description": "This option will cause PGP to base64 encode the encrypted text, making it available for copy\/paste, etc.",
"sourceType": "org.apache.camel.converter.crypto.springboot.PGPDataFormatConfiguration",
"defaultValue": false
},
{
"name": "camel.dataformat.pgp.compression-algorithm",
"type": "java.lang.Integer",
"description": "Compression algorithm; possible values are defined in org.bouncycastle.bcpg.CompressionAlgorithmTags; for example 0 (= UNCOMPRESSED), 1 (= ZIP), 2 (= ZLIB), 3 (= BZIP2). Only relevant for encrypting.",
"sourceType": "org.apache.camel.converter.crypto.springboot.PGPDataFormatConfiguration"
},
{
"name": "camel.dataformat.pgp.customizer.enabled",
"type": "java.lang.Boolean",
"sourceType": "org.apache.camel.spring.boot.DataFormatConfigurationPropertiesCommon$CustomizerProperties"
},
{
"name": "camel.dataformat.pgp.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable auto configuration of the pgp data format. This is enabled by default.",
"sourceType": "org.apache.camel.converter.crypto.springboot.PGPDataFormatConfiguration"
},
{
"name": "camel.dataformat.pgp.hash-algorithm",
"type": "java.lang.Integer",
"description": "Signature hash algorithm; possible values are defined in org.bouncycastle.bcpg.HashAlgorithmTags; for example 2 (= SHA1), 8 (= SHA256), 9 (= SHA384), 10 (= SHA512), 11 (=SHA224). Only relevant for signing.",
"sourceType": "org.apache.camel.converter.crypto.springboot.PGPDataFormatConfiguration"
},
{
"name": "camel.dataformat.pgp.integrity",
"type": "java.lang.Boolean",
"description": "Adds an integrity check\/sign into the encryption file. The default value is true.",
"sourceType": "org.apache.camel.converter.crypto.springboot.PGPDataFormatConfiguration",
"defaultValue": true
},
{
"name": "camel.dataformat.pgp.key-file-name",
"type": "java.lang.String",
"description": "Filename of the keyring; must be accessible as a classpath resource (but you can specify a location in the file system by using the file: prefix).",
"sourceType": "org.apache.camel.converter.crypto.springboot.PGPDataFormatConfiguration"
},
{
"name": "camel.dataformat.pgp.key-userid",
"type": "java.lang.String",
"description": "The user ID of the key in the PGP keyring used during encryption. Can also be only a part of a user ID. For example, if the user ID is Test User then you can use the part Test User or to address the user ID.",
"sourceType": "org.apache.camel.converter.crypto.springboot.PGPDataFormatConfiguration"
},
{
"name": "camel.dataformat.pgp.password",
"type": "java.lang.String",
"description": "Password used when opening the private key (not used for encryption).",
"sourceType": "org.apache.camel.converter.crypto.springboot.PGPDataFormatConfiguration"
},
{
"name": "camel.dataformat.pgp.provider",
"type": "java.lang.String",
"description": "Java Cryptography Extension (JCE) provider, default is Bouncy Castle (BC). Alternatively you can use, for example, the IAIK JCE provider; in this case the provider must be registered beforehand and the Bouncy Castle provider must not be registered beforehand. The Sun JCE provider does not work.",
"sourceType": "org.apache.camel.converter.crypto.springboot.PGPDataFormatConfiguration"
},
{
"name": "camel.dataformat.pgp.signature-key-file-name",
"type": "java.lang.String",
"description": "Filename of the keyring to use for signing (during encryption) or for signature verification (during decryption); must be accessible as a classpath resource (but you can specify a location in the file system by using the file: prefix).",
"sourceType": "org.apache.camel.converter.crypto.springboot.PGPDataFormatConfiguration"
},
{
"name": "camel.dataformat.pgp.signature-key-ring",
"type": "java.lang.String",
"description": "Keyring used for signing\/verifying as byte array. You can not set the signatureKeyFileName and signatureKeyRing at the same time.",
"sourceType": "org.apache.camel.converter.crypto.springboot.PGPDataFormatConfiguration"
},
{
"name": "camel.dataformat.pgp.signature-key-userid",
"type": "java.lang.String",
"description": "User ID of the key in the PGP keyring used for signing (during encryption) or signature verification (during decryption). During the signature verification process the specified User ID restricts the public keys from the public keyring which can be used for the verification. If no User ID is specified for the signature verficiation then any public key in the public keyring can be used for the verification. Can also be only a part of a user ID. For example, if the user ID is Test User then you can use the part Test User or to address the User ID.",
"sourceType": "org.apache.camel.converter.crypto.springboot.PGPDataFormatConfiguration"
},
{
"name": "camel.dataformat.pgp.signature-password",
"type": "java.lang.String",
"description": "Password used when opening the private key used for signing (during encryption).",
"sourceType": "org.apache.camel.converter.crypto.springboot.PGPDataFormatConfiguration"
},
{
"name": "camel.dataformat.pgp.signature-verification-option",
"type": "java.lang.String",
"description": "Controls the behavior for verifying the signature during unmarshaling. There are 4 values possible: optional: The PGP message may or may not contain signatures; if it does contain signatures, then a signature verification is executed. required: The PGP message must contain at least one signature; if this is not the case an exception (PGPException) is thrown. A signature verification is executed. ignore: Contained signatures in the PGP message are ignored; no signature verification is executed. no_signature_allowed: The PGP message must not contain a signature; otherwise an exception (PGPException) is thrown.",
"sourceType": "org.apache.camel.converter.crypto.springboot.PGPDataFormatConfiguration"
}
],
"hints": []
}
Loading

0 comments on commit 76cbfe0

Please sign in to comment.