You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Franz Forsthofer (JIRA)" <ji...@apache.org> on 2014/02/13 10:45:22 UTC

[jira] [Updated] (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 ]

Franz Forsthofer updated CAMEL-7201:
------------------------------------

    Attachment: 0001-pgp-key-accessor-interfaces-for-key-caching.patch

> 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
>             Fix For: 2.12.3
>
>         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)