Franz Forsthofer created CAMEL-7201:
---------------------------------------
Summary: 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
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)