You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2014/02/19 14:30:20 UTC

[jira] [Resolved] (CAMEL-7201) PGPDataFormat: allow caching of PGP keys via key access interface

     [ https://issues.apache.org/jira/browse/CAMEL-7201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-7201.
---------------------------------

    Resolution: Fixed

Applied the patch into camel master branch with thanks to Franz.
I also updated the wiki page for the change.

> PGPDataFormat: allow caching of PGP keys via key access interface
> -----------------------------------------------------------------
>
>                 Key: CAMEL-7201
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7201
>             Project: Camel
>          Issue Type: Improvement
>          Components:  camel-crypto
>            Reporter: Franz Forsthofer
>            Assignee: Willem Jiang
>             Fix For: 2.13.0
>
>         Attachments: 0001-pgp-key-accessor-interfaces-for-key-caching.patch
>
>
> In the current PGPDataFormat implementation, you provide the public and secret keyring as file or byte array and the keyrings are parsed into object representation during each call. This is fine if you want dynamically exchange the keyrings. However, this has a performance impact. In the provided patch I added the possibility that the PGP keys can be cached so that the performance can be improved. I did this by adding the two interfaces PGPPublicKeyAccess and PGPSecretKeyAccess. So user can now implement his own key access or use the provided default implementations PGPPublicKeyAccessDefault and PGPSecretKeyAccessDefault.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)