camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Franz Paul Forsthofer <emc2...@googlemail.com>
Subject New crypto component CMS (Cryptographic Message Syntax)
Date Fri, 23 Jun 2017 08:10:12 GMT
Hello Claus,



I want to contribute a new crypto component which supports
encryption/decryption, signing/verifying according to the Cryptographic
Message Syntax (CMS). See the CMS specification given in
https://tools.ietf.org/html/rfc5652. This component will use the Bouncy
Castle CMS library (bcpkix) which also needs the Bouncy Castel JCEE
provider library (bcprov).



We have already the camel crypto component which has dependencies to the
Bouncy Castle libraries bcprov and bcpg because it contains the PGP
encryption and decryption:



                       <dependency>


<groupId>org.bouncycastle</groupId>


<artifactId>bcpg-jdk15on</artifactId>


<version>${bouncycastle-version}</version>

                              </dependency>

                              <dependency>


<groupId>org.bouncycastle</groupId>


<artifactId>bcprov-jdk15on</artifactId>


<version>${bouncycastle-version}</version>

                              </dependency>



I could put the CMS endpoints also into the crypto maven project. However,
in my opinion it makes sense to create a new own component for CMS in a new
own maven project because

-        then we have a clear separation between PGP and CMS

-        users which only want to use  PGP will then not need the bcpkix
library and users which only want to use CMS will not need the bcpg library



My idea is to provide the following endpoints:



camel-cms:sign://<name>?[options]



camel-cms:verify://<name>?[options]



camel-cms:encrypt://<name>?[options]



camel-cms:decrypt://<name>?[options]



So I propose the component name camel-cms . We could use as package name
org.apache.camel.component.cms.



Do you agree that I create a new maven project for the camel-cms component
or should I put the component into camel-crypto maven project?



I plan the contribution for the 2.20 release.



Best Regards Franz

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message