From commits-return-33383-apmail-camel-commits-archive=camel.apache.org@camel.apache.org Wed Feb 26 09:35:10 2014 Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5EBB210A1F for ; Wed, 26 Feb 2014 09:35:10 +0000 (UTC) Received: (qmail 70465 invoked by uid 500); 26 Feb 2014 09:35:09 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 70321 invoked by uid 500); 26 Feb 2014 09:35:04 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 70300 invoked by uid 99); 26 Feb 2014 09:35:03 -0000 Received: from cwiki-vm.apache.org (HELO cwiki-vm) (140.211.11.69) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Feb 2014 09:35:03 +0000 Received: from cwiki-vm.apache.org (localhost [127.0.0.1]) by cwiki-vm (Postfix) with ESMTP id AC09CA2690 for ; Wed, 26 Feb 2014 09:35:00 +0000 (UTC) Date: Wed, 26 Feb 2014 09:35:00 +0000 (UTC) From: "Franz Forsthofer (Confluence)" To: commits@camel.apache.org Message-ID: <1654537438.11513.1393407301707.JavaMail.confluence@cwiki-vm> Subject: [CONF] Apache Camel > Crypto MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_11512_713002039.1393407300017" Auto-Submitted: auto-generated ------=_Part_11512_713002039.1393407300017 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
<= /td>
Franz F= orsthofer bearbeitete die Seite:

3D"" Crypto

...

Support of Custom Key A= ccessors

Since Camel 2.13.0.
There i= s the possibility to define your You= can implement custom key accessors for encryption/signing. The abov= e PGPDataFormat class selects in a certain predefined way the keys which sh= ould be used for signing/encryption or verifying/decryption. If you have sp= ecial requirements how your keys should be selected you should use the PGPKeyAccessDataFormat clas= s instead and implement the interfaces [PGPPublicKeyAccessor|https://github.com/apa= che/camel/blob/master/components/camel-crypto/src/main/java/org/apache/came= l/converter/crypto/PGPPublicKeyAccessor.java] and [PGPSecretKeyAccessor|https://github.com/apache/cam= el/blob/master/components/camel-crypto/src/main/java/org/apache/camel/conve= rter/crypto/PGPSecretKeyAccessor.java]. There are default implementations [DefaultPGPPubli= cKeyAccessor|https://github.com/apache/camel/blob/master/components/camel-= crypto/src/main/java/org/apache/camel/converter/crypto/DefaultPGPPublicKeyA= ccessor.java] and&nb= sp;[DefaultPGPSecretKeyAccessor|https://github.com/apache/camel/blob/maste= r/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/D= efaultPGPSecretKeyAccessor.java] interfaces PGPPublicKeyAccessor and PGPSecretKeyAccessor= as beans. There are default implementations DefaultPGPPublicKeyAccessor and <= a href=3D"https://github.com/apache/camel/blob/master/components/camel-cryp= to/src/main/java/org/apache/camel/converter/crypto/DefaultPGPSecretKeyAcces= sor.java" class=3D"external-link" rel=3D"nofollow" style=3D"color: #326ca6;= text-decoration: none">DefaultPGPSecretKeyAccessor which cache the keys, so that not every time the keyring i= s parsed when the processor is called.

PGPKeyAccessDataFormat= has the same options as PGPDataFormat except

...

password

...

, <= /span>

...

keyFileName

...

, <= /span>

...

encryptionKeyRing

...

, <= /span>

...

signaturePassword

...

, <= /span>

...

signatureKeyFileName

...

, =

...

...

...

.

 

Dependencies

To use the Crypto = dataformat in your camel routes you need to add the following dependency to= your pom.

...

Online anzeigen · Gefällt mir · Ände= rungen anzeigen Überwachung des Bereich= s beenden · = Benachrichtigungen ve= rwalten
Diese Nachricht wurde von Atlassian Confluence 5.0.3, der Kollaborationssoftware fü= ;r Teams, gesendet
------=_Part_11512_713002039.1393407300017 Content-Type: image/png; name=avatar_d08741de1f73dd6d55da2c16dd265387 Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: attachment; filename=avatar_d08741de1f73dd6d55da2c16dd265387 iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAM1BMVEUrZJv///84bqHY4u3L2ebl 7PNgi7SVss3z9vmjvNNTga57nsFulbqwxdq9z+CIqMdGd6hCAHL/AAAAuklEQVR4XuWU6arCMBBG O1uWbve+/9MqIqadFr8MCAU9/wI5MPvwvXBKHBAmoTsydQqs9ES567/QC+kxlDYoFibagfOwvWBI mMkxA2HxwgIE8YIAgQ58WOCjwBeHhKuE+xDudHSWwtMa3YfwxkV3Onw14nfpesasm9KwkObxze9q rZitwFbTqZBax8r48EsbkBMl0ZbMnN0MgqErxb0ZjbXnzwkrEsxfC8g/iAjEVLGw+mMRS4I6GH6X G8taBR9UYYSgAAAAAElFTkSuQmCC ------=_Part_11512_713002039.1393407300017 Content-Type: image/png; name=page-icon Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: attachment; filename=page-icon iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAPFBMVEX///+1tbWwsLCtra3////5 +fmLi4vZ2dnT09P8/PzPz8+rq6uhoaHR0dFycnJwcHB6enp4eHiDg4OAgIBog/vRAAAADnRSTlMA IiJV3e7u7u7u7u7u7rDOyYEAAABUSURBVHhepcpLDoAwCABRqkBbP9Dq/e9qLYS1ibN8GQBYWFVG fQWLWyFEJG0uknGmuz+CDnjYEzDqDpF8BrV+HBRHNThjyBP42qpBufmFxOIpJ3gAPTUGaYiilrsA AAAASUVORK5CYII= ------=_Part_11512_713002039.1393407300017--