[CONF] Apache Camel Crypto

2014-02-26 Thread Franz Forsthofer (Confluence)














  


Franz Forsthofer bearbeitete die Seite:
 


Crypto   






...
SinceCamel 2.12.3. An OpenPGP V4 key can have a primary key and sub-keys. The usage of the keys is indicated by the so called Key Flags. For example, you can have a primary key with two sub-keys; the primary key shall only be used for certifying other keys (Key Flag 0x01), the first sub-key shall only be used for signing (Key Flag 0x02), and the second sub-key shall only be used for encryption (Key Flag 0x04 or 0x08). The PGP Data Format marshaler takes into account these Key Flags of the primary key and sub-keys in order to determine the right key for signing and encryption. This is necessary because the primary key and its sub-keys have the same User IDs.
 Support of Custom Key Accessors 
 Since Camel 2.13.0.  There is the possibility to define your custom key accessors for encryption/signing. The above PGPDataFormat class selects in a certain predefined way the keys which should be used for signing/encryption or verifying/decryption. If you have special requirements how your keys should be selected you should use the PGPKeyAccessDataFormat class instead and implement the interfaces[PGPPublicKeyAccessor|https://github.com/apache/camel/blob/master/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/PGPPublicKeyAccessor.java] and [PGPSecretKeyAccessor|https://github.com/apache/camel/blob/master/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/PGPSecretKeyAccessor.java]. There are default implementations[DefaultPGPPublicKeyAccessor|https://github.com/apache/camel/blob/master/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/DefaultPGPPublicKeyAccessor.java] and[DefaultPGPSecretKeyAccessor|https://github.com/apache/camel/blob/master/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/DefaultPGPSecretKeyAccessor.java] which cache the keys, so that not every time the keyring is parsed when the processor is called. 
 PGPKeyAccessDataFormat has the same options as PGPDataFormat except 

{{password}}, {{keyFileName}}, {{encryptionKeyRing}},{{signaturePassword}}, {{signatureKeyFileName}}, and {{signatureKeyRing}}

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






 Online anzeigen   Gefllt mir   nderungen anzeigen  
 berwachung des Bereichs beenden   Benachrichtigungen verwalten  


 


 


  Diese Nachricht wurde von Atlassian Confluence 5.0.3, der Kollaborationssoftware fr Teams, gesendet  






[CONF] Apache Camel Crypto

2014-02-26 Thread Franz Forsthofer (Confluence)














  


Franz Forsthofer bearbeitete die Seite:
 


Crypto   






...
Support of Custom Key Accessors
Since Camel 2.13.0. There is the possibility to define your You can implement custom key accessors for encryption/signing. The above PGPDataFormat class selects in a certain predefined way the keys which should be used for signing/encryption or verifying/decryption. If you have special requirements how your keys should be selected you should use the PGPKeyAccessDataFormat class instead and implement the interfaces[PGPPublicKeyAccessor|https://github.com/apache/camel/blob/master/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/PGPPublicKeyAccessor.java] and [PGPSecretKeyAccessor|https://github.com/apache/camel/blob/master/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/PGPSecretKeyAccessor.java]. There are default implementations[DefaultPGPPublicKeyAccessor|https://github.com/apache/camel/blob/master/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/DefaultPGPPublicKeyAccessor.java] and[DefaultPGPSecretKeyAccessor|https://github.com/apache/camel/blob/master/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/DefaultPGPSecretKeyAccessor.java] interfaces PGPPublicKeyAccessor and PGPSecretKeyAccessor as beans. There are default implementations DefaultPGPPublicKeyAccessor and DefaultPGPSecretKeyAccessor which cache the keys, so that not every time the keyring is parsed when the processor is called.
PGPKeyAccessDataFormat has the same options as PGPDataFormat except 
...
  password 
...
 ,  
...
  keyFileName 
...
 ,  
...
  encryptionKeyRing 
...
 ,  
...
  signaturePassword 
...
 ,  
...
  signatureKeyFileName 
...
 ,  
...
  and  
...
  signatureKeyRing 
...
 . 
  
Dependencies
To use the Crypto dataformat in your camel routes you need to add the following dependency to your pom.
...






   

[CONF] Apache Camel Crypto

2014-02-26 Thread Franz Forsthofer (Confluence)














  


Franz Forsthofer bearbeitete die Seite:
 


Crypto   






...



 Wiki-Markup




 || Name || Type || Default || Description ||
| {{keyUserid}} | {{String}} | {{null}} | The user ID of the key in the PGP keyring used during encryption. See also option {{keyUserids}}. Can also be only a part of a user ID. For example, if the user ID is Test User t...@camel.com then you can use the part Test User or t...@camel.com to address the user ID. |
| {{keyUserids}} | {{ListString}} | {{null}} | *Since camel 2.12.2*: PGP allows to encrypt the symmetric key by several asymmetric public receiver keys. You can specify here the User IDs or parts of User IDs of several public keys contained in the PGP keyring.  If you just have one User ID, then you can also use the option {{keyUserid}}. The User ID specified in {{keyUserid}} and the User IDs in {{keyUserids}} will be merged together and the corresponding public keys will be used for the encryption. |
| {{password}} | {{String}} | {{null}} | Password used when opening the private key (not used for encryption). |
| {{keyFileName}} | {{String}} | {{null}} | 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). |
| {{encryptionKeyRing}} | {{byte\[\]}} | {{null}} | *Since camel 2.12.1*; encryption keyring; you can not set the keyFileName and encryptionKeyRing at the same time. |
| {{signatureKeyUserid}} | {{String}} | {{null}} | *Since Camel 2.11.0*; optional 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 t...@camel.com then you can use the part Test User or t...@camel.com to address the User ID. |
| {{signatureKeyUserids}} | {{ListString}} | {{null}} | *Since Camel 2.12.3*; optional list of User IDs of the key in the PGP keyring used for signing (during encryption) or signature verification (during decryption). You can specify here the User IDs or parts of User IDs of several keys contained in the PGP keyring.  If you just have one User ID, then you can also use the option {{keyUserid}}. The User ID specified in {{keyUserid}} and the User IDs in {{keyUserids}} will be merged together and the corresponding keys will be used for the signing or signature verification. If the specified User IDs reference several keys then for each key a signature is added to the PGP result during the encryption-signing process. In the decryption-verifying process the list of User IDs restricts the list of public keys which can be used for signature verification. If the list of User IDs is empty then any public key in the public keyring can be used for the signature verification.  |
| {{signaturePassword}} | {{String}} | {{null}} | *Since Camel 2.11.0*; optional password used when opening the private key used for signing (during encryption). |
| {{signatureKeyFileName}} | {{String}} | {{null}} | *Since Camel 2.11.0*; optional filename of the keyring to use for signing (during encryption) or for 

svn commit: r899244 [1/3] - in /websites/production/camel/content: book-dataformat-appendix.html book-in-one-page.html cache/main.pageCache crypto.html

2014-02-26 Thread buildbot
Author: buildbot
Date: Wed Feb 26 10:19:23 2014
New Revision: 899244

Log:
Production update by buildbot for camel

Modified:
websites/production/camel/content/book-dataformat-appendix.html
websites/production/camel/content/book-in-one-page.html
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/crypto.html

Modified: websites/production/camel/content/book-dataformat-appendix.html
==
--- websites/production/camel/content/book-dataformat-appendix.html (original)
+++ websites/production/camel/content/book-dataformat-appendix.html Wed Feb 26 
10:19:23 2014
@@ -3570,10 +3570,8 @@ from(quot;direct:key-in-header-decrypt
 script class=theme: Default; brush: xml; gutter: false 
type=syntaxhighlighter![CDATA[
 lt;crypto id=quot;nokeyquot; algorithm=quot;DESquot; /gt;
 ]]/script
-/div/divh3 id=BookDataFormatAppendix-PGPDataFormatOptionsPGPDataFormat 
Options/h3table class=confluenceTabletbodytrth colspan=1 
rowspan=1 class=confluenceThp Name /p/thth colspan=1 rowspan=1 
class=confluenceThp Type /p/thth colspan=1 rowspan=1 
class=confluenceThp Default /p/thth colspan=1 rowspan=1 
class=confluenceThp Description /p/th/trtrtd colspan=1 
rowspan=1 class=confluenceTdp codekeyUserid/code /p/tdtd 
colspan=1 rowspan=1 class=confluenceTdp codeString/code 
/p/tdtd colspan=1 rowspan=1 class=confluenceTdp codenull/code 
/p/tdtd colspan=1 rowspan=1 class=confluenceTdp The user ID of 
the key in the PGP keyring used during encryption. See also option 
codekeyUserids/code. Can also be only a part of a user ID. For example, if 
the user ID is Test User lt;t...@camel.comgt; then you can use the part 
Test User or lt;t...@camel.comgt; 
 to address the user ID. /p/td/trtrtd colspan=1 rowspan=1 
class=confluenceTdp codekeyUserids/code /p/tdtd colspan=1 
rowspan=1 class=confluenceTdp codeListlt;Stringgt;/code 
/p/tdtd colspan=1 rowspan=1 class=confluenceTdp codenull/code 
/p/tdtd colspan=1 rowspan=1 class=confluenceTdp strongSince 
camel 2.12.2/strong: PGP allows to encrypt the symmetric key by several 
asymmetric public receiver keys. You can specify here the User IDs or parts of 
User IDs of several public keys contained in the PGP keyring.  If you just have 
one User ID, then you can also use the option codekeyUserid/code. The User 
ID specified in codekeyUserid/code and the User IDs in 
codekeyUserids/code will be merged together and the corresponding public 
keys will be used for the encryption. /p/td/trtrtd colspan=1 
rowspan=1 class=confluenceTdp codepassword/code /p/tdtd 
colspan=1 rowspan=1 class=confl
 uenceTdp codeString/code /p/tdtd colspan=1 rowspan=1 
class=confluenceTdp codenull/code /p/tdtd colspan=1 rowspan=1 
class=confluenceTdp Password used when opening the private key (not used 
for encryption). /p/td/trtrtd colspan=1 rowspan=1 
class=confluenceTdp codekeyFileName/code /p/tdtd colspan=1 
rowspan=1 class=confluenceTdp codeString/code /p/tdtd 
colspan=1 rowspan=1 class=confluenceTdp codenull/code /p/tdtd 
colspan=1 rowspan=1 class=confluenceTdp 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). /p/td/trtrtd colspan=1 
rowspan=1 class=confluenceTdp codeencryptionKeyRing/code 
/p/tdtd colspan=1 rowspan=1 class=confluenceTdp 
codebyte[]/code /p/tdtd colspan=1 rowspan=1 
class=confluenceTdp codenull/code /p/tdtd colspa
 n=1 rowspan=1 class=confluenceTdp strongSince camel 
2.12.1/strong; encryption keyring; you can not set the keyFileName and 
encryptionKeyRing at the same time. /p/td/trtrtd colspan=1 
rowspan=1 class=confluenceTdp codesignatureKeyUserid/code 
/p/tdtd colspan=1 rowspan=1 class=confluenceTdp 
codeString/code /p/tdtd colspan=1 rowspan=1 
class=confluenceTdp codenull/code /p/tdtd colspan=1 rowspan=1 
class=confluenceTdp strongSince Camel 2.11.0/strong; optional 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 lt;t...@camel.comgt; then you can use 
the part Test User or lt;t...@camel.comgt; to address the User ID. 
/p/td/trtrtd colspan=1 rowspan=1 class=confluenceTdp 
codesignatureKeyUserids/code /p/tdtd colspan=1 rowspan=1 
class=confluenceTdp codeListlt;Stringgt;/code /p/tdtd 
colspan=1 rowspan=1 class=confluenceTdp codenull/code /p/tdtd 
colspan=1 rowspan=1 class=confluenceTdp strongSince Camel 
2.12.3/strong; optional list of User IDs of the key in the PGP keyring used 
for signing (during encryption) or signature verification (during 

svn commit: r899244 [2/3] - in /websites/production/camel/content: book-dataformat-appendix.html book-in-one-page.html cache/main.pageCache crypto.html

2014-02-26 Thread buildbot
Modified: websites/production/camel/content/book-in-one-page.html
==
--- websites/production/camel/content/book-in-one-page.html (original)
+++ websites/production/camel/content/book-in-one-page.html Wed Feb 26 10:19:23 
2014
@@ -4269,11 +4269,11 @@ While not actual tutorials you might fin
 
 pThis tutorial aims to guide the reader through the stages of creating a 
project which uses Camel to facilitate the routing of messages from a JMS queue 
to a a shape=rect class=external-link href=http://www.springramework.org; 
rel=nofollowSpring/a service.  The route works in a synchronous fashion 
returning a response to the client./p
 style type=text/css/*![CDATA[*/
-div.rbtoc1393377570267 {padding: 0px;}
-div.rbtoc1393377570267 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1393377570267 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1393409895328 {padding: 0px;}
+div.rbtoc1393409895328 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1393409895328 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]*//stylediv class=toc-macro rbtoc1393377570267
+/*]]*//stylediv class=toc-macro rbtoc1393409895328
 ul class=toc-indentationlia shape=rect 
href=#Tutorial-JmsRemoting-TutorialonSpringRemotingwithJMSTutorial on Spring 
Remoting with JMS/a/lilia shape=rect 
href=#Tutorial-JmsRemoting-PrefacePreface/a/lilia shape=rect 
href=#Tutorial-JmsRemoting-PrerequisitesPrerequisites/a/lilia 
shape=rect 
href=#Tutorial-JmsRemoting-DistributionDistribution/a/lilia 
shape=rect href=#Tutorial-JmsRemoting-AboutAbout/a/lilia 
shape=rect href=#Tutorial-JmsRemoting-CreatetheCamelProjectCreate the 
Camel Project/a
 ul class=toc-indentationlia shape=rect 
href=#Tutorial-JmsRemoting-UpdatethePOMwithDependenciesUpdate the POM with 
Dependencies/a/li/ul
 /lilia shape=rect href=#Tutorial-JmsRemoting-WritingtheServerWriting 
the Server/a
@@ -6614,11 +6614,11 @@ So we completed the last piece in the pi
 
 
 style type=text/css/*![CDATA[*/
-div.rbtoc1393377570571 {padding: 0px;}
-div.rbtoc1393377570571 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1393377570571 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1393409895750 {padding: 0px;}
+div.rbtoc1393409895750 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1393409895750 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]*//stylediv class=toc-macro rbtoc1393377570571
+/*]]*//stylediv class=toc-macro rbtoc1393409895750
 ul class=toc-indentationlia shape=rect 
href=#Tutorial-AXIS-Camel-TutorialusingAxis1.4withApacheCamelTutorial using 
Axis 1.4 with Apache Camel/a
 ul class=toc-indentationlia shape=rect 
href=#Tutorial-AXIS-Camel-PrerequisitesPrerequisites/a/lilia 
shape=rect 
href=#Tutorial-AXIS-Camel-DistributionDistribution/a/lilia 
shape=rect 
href=#Tutorial-AXIS-Camel-IntroductionIntroduction/a/lilia 
shape=rect href=#Tutorial-AXIS-Camel-SettinguptheprojecttorunAxisSetting 
up the project to run Axis/a
 ul class=toc-indentationlia shape=rect 
href=#Tutorial-AXIS-Camel-Maven2Maven 2/a/lilia shape=rect 
href=#Tutorial-AXIS-Camel-wsdlwsdl/a/lilia shape=rect 
href=#Tutorial-AXIS-Camel-ConfiguringAxisConfiguring Axis/a/lilia 
shape=rect href=#Tutorial-AXIS-Camel-RunningtheExampleRunning the 
Example/a/li/ul
@@ -14224,10 +14224,8 @@ from(quot;direct:key-in-header-decrypt
 script class=theme: Default; brush: xml; gutter: false 
type=syntaxhighlighter![CDATA[
 lt;crypto id=quot;nokeyquot; algorithm=quot;DESquot; /gt;
 ]]/script
-/div/divh3 id=BookInOnePage-PGPDataFormatOptionsPGPDataFormat 
Options/h3table class=confluenceTabletbodytrth colspan=1 
rowspan=1 class=confluenceThp Name /p/thth colspan=1 rowspan=1 
class=confluenceThp Type /p/thth colspan=1 rowspan=1 
class=confluenceThp Default /p/thth colspan=1 rowspan=1 
class=confluenceThp Description /p/th/trtrtd colspan=1 
rowspan=1 class=confluenceTdp codekeyUserid/code /p/tdtd 
colspan=1 rowspan=1 class=confluenceTdp codeString/code 
/p/tdtd colspan=1 rowspan=1 class=confluenceTdp codenull/code 
/p/tdtd colspan=1 rowspan=1 class=confluenceTdp The user ID of 
the key in the PGP keyring used during encryption. See also option 
codekeyUserids/code. Can also be only a part of a user ID. For example, if 
the user ID is Test User lt;t...@camel.comgt; then you can use the part 
Test User or lt;t...@camel.comgt; to addres
 s the user ID. /p/td/trtrtd colspan=1 rowspan=1 
class=confluenceTdp codekeyUserids/code /p/tdtd colspan=1 
rowspan=1 class=confluenceTdp codeListlt;Stringgt;/code 
/p/tdtd colspan=1 rowspan=1 class=confluenceTdp codenull/code 
/p/tdtd colspan=1 rowspan=1 class=confluenceTdp strongSince 
camel 2.12.2/strong: PGP allows to encrypt the symmetric key by several 
asymmetric public receiver keys. You can specify here the User IDs or parts of 
User IDs of several public keys contained in the PGP keyring.  If you just have 
one User ID, then you can also use the option codekeyUserid/code. The User 
ID specified in codekeyUserid/code and the User IDs in 

svn commit: r899244 [3/3] - in /websites/production/camel/content: book-dataformat-appendix.html book-in-one-page.html cache/main.pageCache crypto.html

2014-02-26 Thread buildbot
Modified: websites/production/camel/content/crypto.html
==
--- websites/production/camel/content/crypto.html (original)
+++ websites/production/camel/content/crypto.html Wed Feb 26 10:19:23 2014
@@ -231,10 +231,8 @@ from(quot;direct:key-in-header-decrypt
 script class=theme: Default; brush: xml; gutter: false 
type=syntaxhighlighter![CDATA[
 lt;crypto id=quot;nokeyquot; algorithm=quot;DESquot; /gt;
 ]]/script
-/div/divh3 id=Crypto-PGPDataFormatOptionsPGPDataFormat 
Options/h3table class=confluenceTabletbodytrth colspan=1 
rowspan=1 class=confluenceThp Name /p/thth colspan=1 rowspan=1 
class=confluenceThp Type /p/thth colspan=1 rowspan=1 
class=confluenceThp Default /p/thth colspan=1 rowspan=1 
class=confluenceThp Description /p/th/trtrtd colspan=1 
rowspan=1 class=confluenceTdp codekeyUserid/code /p/tdtd 
colspan=1 rowspan=1 class=confluenceTdp codeString/code 
/p/tdtd colspan=1 rowspan=1 class=confluenceTdp codenull/code 
/p/tdtd colspan=1 rowspan=1 class=confluenceTdp The user ID of 
the key in the PGP keyring used during encryption. See also option 
codekeyUserids/code. Can also be only a part of a user ID. For example, if 
the user ID is Test User lt;t...@camel.comgt; then you can use the part 
Test User or lt;t...@camel.comgt; to address the u
 ser ID. /p/td/trtrtd colspan=1 rowspan=1 class=confluenceTdp 
codekeyUserids/code /p/tdtd colspan=1 rowspan=1 
class=confluenceTdp codeListlt;Stringgt;/code /p/tdtd 
colspan=1 rowspan=1 class=confluenceTdp codenull/code /p/tdtd 
colspan=1 rowspan=1 class=confluenceTdp strongSince camel 
2.12.2/strong: PGP allows to encrypt the symmetric key by several asymmetric 
public receiver keys. You can specify here the User IDs or parts of User IDs of 
several public keys contained in the PGP keyring.  If you just have one User 
ID, then you can also use the option codekeyUserid/code. The User ID 
specified in codekeyUserid/code and the User IDs in codekeyUserids/code 
will be merged together and the corresponding public keys will be used for the 
encryption. /p/td/trtrtd colspan=1 rowspan=1 
class=confluenceTdp codepassword/code /p/tdtd colspan=1 
rowspan=1 class=confluenceTdp co
 deString/code /p/tdtd colspan=1 rowspan=1 class=confluenceTdp 
codenull/code /p/tdtd colspan=1 rowspan=1 class=confluenceTdp 
Password used when opening the private key (not used for encryption). 
/p/td/trtrtd colspan=1 rowspan=1 class=confluenceTdp 
codekeyFileName/code /p/tdtd colspan=1 rowspan=1 
class=confluenceTdp codeString/code /p/tdtd colspan=1 
rowspan=1 class=confluenceTdp codenull/code /p/tdtd colspan=1 
rowspan=1 class=confluenceTdp 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). /p/td/trtrtd colspan=1 
rowspan=1 class=confluenceTdp codeencryptionKeyRing/code 
/p/tdtd colspan=1 rowspan=1 class=confluenceTdp 
codebyte[]/code /p/tdtd colspan=1 rowspan=1 
class=confluenceTdp codenull/code /p/tdtd colspan=1 rowspan=1
  class=confluenceTdp strongSince camel 2.12.1/strong; encryption 
keyring; you can not set the keyFileName and encryptionKeyRing at the same 
time. /p/td/trtrtd colspan=1 rowspan=1 class=confluenceTdp 
codesignatureKeyUserid/code /p/tdtd colspan=1 rowspan=1 
class=confluenceTdp codeString/code /p/tdtd colspan=1 
rowspan=1 class=confluenceTdp codenull/code /p/tdtd colspan=1 
rowspan=1 class=confluenceTdp strongSince Camel 2.11.0/strong; 
optional 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 lt;t...@camel.comgt; then you can use the part Test 
User or lt;t...@camel.comgt; to address the User ID. /p/td/trtrtd 
colspan=1 rowspan=1 class=confluenceTdp 
codesignatureKeyUserids/code /p/tdtd colspan=1 rowspan=1 
class=confluenceTdp codeListlt;Stringgt;/code /p/tdtd 
colspan=1 rowspan=1 class=confluenceTdp codenull/code /p/tdtd 
colspan=1 rowspan=1 class=confluenceTdp strongSince Camel 
2.12.3/strong; optional list of User IDs of the key in the PGP keyring used 
for signing (during encryption) or signature verification (during decryption). 
You can specify here the User IDs or parts of User IDs of several keys 
contained in the PGP keyring.  If you just have one User ID, then you can also 
use the option codekeyUserid/code. The User ID specified in 
codekeyUserid/code and the User IDs in codekeyUserids/code will be 
merged together and the corresponding keys will be used
  for the signing or signature verification. If the specified User IDs 
reference several 

[CONF] Apache Camel Camel 2.13.0 Release

2014-02-26 Thread Henryk Konsek (Confluence)














  


Henryk Konsek edited the page:
 


Camel 2.13.0 Release   




 Comment: Added CAMEL-7240 information. 


...

Fixed an ArrayIndexOutOfBoundsException with Message History when using SEDA 
Fixed requestTimeout on Netty not triggering when we have received message.
Fixed Parameter Binding Annotations on boolean types to evaluate as Predicate instead of _expression_ 
Fixed using File consumer with delete=truereadLock=fileLock not being able to delete the file on Windows.
Fixed Throttler to honor time slots after period expires (eg so it works consistently and as expected).
Fixed getting JMSXUserID property when consuming from ActiveMQ 
Fixed interceptFrom to support property placeholders
Fixed a race condition in initializing SSLContext in Netty and Netty HTTP 
Fixed using Recipient List, Routing Slip calling another route which is configured with NoErrorHandler, and an exception occurred in that route, would be propagated back as not-exhausted, allow the caller route to have its error handler react on the exception.
Fixed Quartz and exception was thrown when scheduling a job, would affect during shutdown, assuming the job was still in progress, and not shutdown the Quartz scheduler.
Fixed so you can configure Stomp endpoints using URIs 
Fixed memory leak when using Language component with camel-script languages and having contentCache=false 
Fixed Error Handler may log at WARN level Cannot determine current route from Exchange when using Splitter 
Fixed camel-fop to work in Apache Karaf and ServiceMix
Fixed HDFS producer to use the configured UuidGenerator when generating split file names to avoid filename collisions
Fixed JpaProducer and JpaConsumer of the JPA component to not share/reuse the same EntityManager object which could cause problems if this would occur in the context of multiple/different threads.
Fixed HTTP4 to support multiple custom component names in use, each configured using different SSLContext.
Fixed Content Based Router using method call's as Predicates if threw an exception, the Content Based Router will call next predicate before triggering Error Handler.
Fixed Netty HTTP producer with query parameters may use wrong parameters from a previous call.
Fixed Netty producer may cause NullPointerException in messageReceived in client handler, if a Channel was destroyed from the producer pool.
Fixed File and FTP consumer(s) when idempotent=true could not detect changed file(s) as a new file, but would regard the file as idempotent.
Fixed Stream consumer reading a file using groupLines would not read last group of message if there 

svn commit: r899251 - in /websites/production/camel/content: cache/main.pageCache camel-2130-release.html

2014-02-26 Thread buildbot
Author: buildbot
Date: Wed Feb 26 11:18:53 2014
New Revision: 899251

Log:
Production update by buildbot for camel

Modified:
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/camel-2130-release.html

Modified: websites/production/camel/content/cache/main.pageCache
==
Binary files - no diff available.

Modified: websites/production/camel/content/camel-2130-release.html
==
--- websites/production/camel/content/camel-2130-release.html (original)
+++ websites/production/camel/content/camel-2130-release.html Wed Feb 26 
11:18:53 2014
@@ -87,7 +87,7 @@
 tr
 td valign=top width=100%
 div class=wiki-content maincontenth1 
id=Camel2.13.0Release-Camel2.13.0release(currentlyinprogress)Camel 2.13.0 
release (currently in progress)/h1div 
style=padding-right:20px;float:left;margin-left:-20px;
-pspan class=image-wrap style=img 
src=http://camel.apache.org/download.data/camel-box-v1.0-150x200.png; 
style=border: 0px solid black/span/p/divdiv 
style=min-height:200px/divh2 id=Camel2.13.0Release-NewandNoteworthyNew 
and Noteworthy/h2pWelcome to the 2.13.0 release which approx XXX issues 
resolved (new features, improvements and bug fixes such as...)/pulliThe 
MBean names registered by a shape=rect href=camel-jmx.htmlCamel JMX/a 
no longer include the hostname in the codecontext/code part, eg before 
codecontext=myHost/myCamelId/code and now after 
codecontext=myCamelId/code. Having the hostname in the MBean name does not 
bring much value, and in fact makes things more complicated as the mbean name 
changes depending on the host running Camel./lilia shape=rect 
href=camel-jmx.htmlMBean naming/a in OSGi cleaned up to use simpler naming 
with symbolicName. Before we could have MBean names with duplicate bundle ids 
such as
  codecontext=114-114-camel-6/code, which now is using the symbolic name 
instead, codecontext=MyApplication/code./liliWhen using multiple OSGi 
Blueprint lt;cm:property-placeholdergt;'s then Camel now favors using 
non-default placeholders, or the last property-placeholder defined in the 
Blueprint XML file. This allows for example to define default properties in one 
placeholder, and override these values in other placeholders./lilia 
shape=rect href=ftp2.htmlFTP/a consumer allow to download a single named 
file without using the FTP LIST command. This allows to download a known file 
from a FTP server even when the user account does not have permission to do FTP 
LIST command./lilia shape=rect href=ftp2.htmlFTP/a consumer allow 
to ignore file not found or insufficient file permission errors./lilia 
shape=rect href=data-format.htmlData Format/a using marshal now 
leverages a shape=rect href=stream-caching.htmlStream caching/a out of 
th
 e box if enabled, which allows to marshal big streams and spool to disk, 
instead of being pure in-memory based./liliImproved using a shape=rect 
href=bean.htmlBean/a when the bean is looked up in the a shape=rect 
href=registry.htmlRegistry/a, when using concurrent processing in the 
route./liliAdded codecache/code option to codebeanRef/code and 
codelt;beangt;/code in the DSL. This avoids looking up the a 
shape=rect href=bean.htmlBean/a from the a shape=rect 
href=registry.htmlRegistry/a on each usage; this can safely be done for 
singleton beans./liliConfiguring a shape=rect 
href=data-format.htmlData Format/as in XML attributes now supports 
reference lookup using the # syntax, eg codelt;jaxb 
xmlStreamWriterWrapper=#myWriterWrapper ..gt;/code/lilia shape=rect 
href=jdbc.htmlJDBC/a component now also support codeoutputType/code to 
specify the expected output as either a List or single Object. As well 
 allow to map to a bean using a codeBeanRowMapper/code to control the 
mapping of ROW names to bean properties./liliBoth a shape=rect 
href=quartz.htmlQuartz/a as well as a shape=rect 
href=quartz2.htmlQuartz2/a based a shape=rect 
href=scheduledroutepolicy.htmlScheduledRoutePolicy/a has been improved to 
better support cluster setups (e.g. to not schedule jobs being already 
scheduled through another node inside a given cluster)./liliReduced the 
work the a shape=rect href=aggregator2.htmlAggregate/a EIP does while 
holding a lock during aggregation, which can lead to improved performance in 
some use-cases./lilicodeJndiRegistry/code now implements all the find 
methods./lilia shape=rect href=vm.htmlVM/a component now supports 
codemultipleConsumers=true/code across deployment units./liliAdded 
code@PreConsumed/code to a shape=rect href=jpa.htmlJPA/a 
consumer./liliAdded CamelFileName header support to the a
  shape=rect href=hdfs.htmlHDFS/a producer/liliLike as 
codeJpaConsumer/code now also codeJpaProducer/code of the a 
shape=rect href=jpa.htmlJPA/a component supports the 
codeCamelEntityManager/code header./lilia shape=rect 

buildbot failure in ASF Buildbot on camel-site-production

2014-02-26 Thread buildbot
The Buildbot has detected a new failure on builder camel-site-production while 
building ASF Buildbot.
Full details are available at:
 http://ci.apache.org/builders/camel-site-production/builds/16992

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: bb-cms-slave

Build Reason: The Nightly scheduler named 'camel-site-production' triggered 
this build
Build Source Stamp: [branch camel/website] HEAD
Blamelist: 

BUILD FAILED: failed compile

sincerely,
 -The Buildbot





buildbot success in ASF Buildbot on camel-site-production

2014-02-26 Thread buildbot
The Buildbot has detected a restored build on builder camel-site-production 
while building ASF Buildbot.
Full details are available at:
 http://ci.apache.org/builders/camel-site-production/builds/16993

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: bb-cms-slave

Build Reason: The Nightly scheduler named 'camel-site-production' triggered 
this build
Build Source Stamp: [branch camel/website] HEAD
Blamelist: 

Build succeeded!

sincerely,
 -The Buildbot





git commit: CAMEL-7244 Fix the issue that verification with subkey restricted by User ID does not work with thanks to Franz

2014-02-26 Thread ningjiang
Repository: camel
Updated Branches:
  refs/heads/master 4c20035bd - cf7ae6936


CAMEL-7244 Fix the issue that verification with subkey restricted by User ID 
does not work with thanks to Franz


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/cf7ae693
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/cf7ae693
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/cf7ae693

Branch: refs/heads/master
Commit: cf7ae69364a57028c55161dcdff494f7f963c208
Parents: 4c20035
Author: Willem Jiang willem.ji...@gmail.com
Authored: Thu Feb 27 15:17:21 2014 +0800
Committer: Willem Jiang willem.ji...@gmail.com
Committed: Thu Feb 27 15:17:21 2014 +0800

--
 .../crypto/DefaultPGPPublicKeyAccessor.java |  7 ++-
 .../camel/converter/crypto/PGPDataFormat.java   | 14 +++--
 .../converter/crypto/PGPDataFormatUtil.java | 61 
 .../crypto/PGPKeyAccessDataFormat.java  | 36 ++--
 .../converter/crypto/PGPPublicKeyAccessor.java  | 11 +++-
 .../converter/crypto/PGPDataFormatTest.java | 31 ++
 6 files changed, 119 insertions(+), 41 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/camel/blob/cf7ae693/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/DefaultPGPPublicKeyAccessor.java
--
diff --git 
a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/DefaultPGPPublicKeyAccessor.java
 
b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/DefaultPGPPublicKeyAccessor.java
index 55b8b72..a1911fb 100644
--- 
a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/DefaultPGPPublicKeyAccessor.java
+++ 
b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/DefaultPGPPublicKeyAccessor.java
@@ -16,6 +16,8 @@
  */
 package org.apache.camel.converter.crypto;
 
+
+
 import java.io.ByteArrayInputStream;
 import java.io.IOException;
 import java.util.List;
@@ -32,6 +34,7 @@ import org.bouncycastle.openpgp.PGPUtil;
  * 
  */
 public class DefaultPGPPublicKeyAccessor implements PGPPublicKeyAccessor {
+
 
 private final PGPPublicKeyRingCollection pgpPublicKeyRing;
 
@@ -46,8 +49,8 @@ public class DefaultPGPPublicKeyAccessor implements 
PGPPublicKeyAccessor {
 }
 
 @Override
-public PGPPublicKey getPublicKey(Exchange exchange, long keyId) throws 
Exception {
-return pgpPublicKeyRing.getPublicKey(keyId);
+public PGPPublicKey getPublicKey(Exchange exchange, long keyId, 
ListString userIdParts) throws Exception {   
+return PGPDataFormatUtil.getPublicKeyWithKeyIdAndUserID(keyId, 
userIdParts, pgpPublicKeyRing);
 }
 
 }

http://git-wip-us.apache.org/repos/asf/camel/blob/cf7ae693/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/PGPDataFormat.java
--
diff --git 
a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/PGPDataFormat.java
 
b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/PGPDataFormat.java
index 07f855f..a147a10 100644
--- 
a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/PGPDataFormat.java
+++ 
b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/PGPDataFormat.java
@@ -27,6 +27,7 @@ import org.apache.camel.Exchange;
 import org.bouncycastle.openpgp.PGPException;
 import org.bouncycastle.openpgp.PGPPrivateKey;
 import org.bouncycastle.openpgp.PGPPublicKey;
+import org.bouncycastle.openpgp.PGPPublicKeyRingCollection;
 
 /**
  * codePGPDataFormat/code uses the a
@@ -37,7 +38,7 @@ import org.bouncycastle.openpgp.PGPPublicKey;
  * 
  */
 public class PGPDataFormat extends PGPKeyAccessDataFormat implements 
PGPPublicKeyAccessor, PGPSecretKeyAccessor {
-
+
 public static final String KEY_FILE_NAME = CamelPGPDataFormatKeyFileName;
 public static final String ENCRYPTION_KEY_RING = 
CamelPGPDataFormatEncryptionKeyRing;
 public static final String KEY_PASSWORD = CamelPGPDataFormatKeyPassword;
@@ -256,10 +257,13 @@ public class PGPDataFormat extends PGPKeyAccessDataFormat 
implements PGPPublicKe
 keyId, findKeyPassword(exchange), getPassphraseAccessor(), 
getProvider());
 }
 
+
+   
 @Override
-public PGPPublicKey getPublicKey(Exchange exchange, long keyId) throws 
Exception {
-return PGPDataFormatUtil.findPublicKeyWithKeyId(exchange.getContext(), 
findSignatureKeyFileName(exchange),
-findSignatureKeyRing(exchange), keyId, false);
+public PGPPublicKey getPublicKey(Exchange exchange, long keyId, 
ListString userIdParts) throws Exception {
+PGPPublicKeyRingCollection publicKeyringCollection =