GitHub user supertypo opened a pull request:
https://github.com/apache/camel/pull/357
JasyptPropertiesParser: Support for partially encrypted properties, custom
encryptor
-Added support for decrypting parts of property values
-- Example property:
some.endpoint=http://somehost?authUsername=username&authPassword=ENC(BjAoLxfpb1h)&token=ENC(ZWbB211g)
-- Decrypted result:
some.endpoint=http://somehost?authUsername=username&authPassword=password&token=sometoken
-Added possibility to provide a custom encryptor (setEncryptor).
-- Useful when the encryptor is provided through an osgi service.
Note: The password and algorithm property is ignored when the encryptor
property is set.
Test cases have been added in JasyptPropertiesParserTest.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/supertypo/camel master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/357.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #357
----
commit 03b7e6cb12bce77267b20e4fe33e1dc49f8fa1db
Author: Marius Thøring <[email protected]>
Date: 2014-12-18T12:32:14Z
-Added support for decrypting parts of property values
-- Example property:
some.endpoint=http://somehost?authUsername=username&authPassword=ENC(BjAoLxfpb1h)&token=ENC(ZWbB211g)
-- Decrypted result:
some.endpoint=http://somehost?authUsername=username&authPassword=password&token=sometoken
-Added possibility to provide a custom encryptor (setEncryptor).
-- Useful when the encryptor is provided through an osgi service.
Note: The password and algorithm property is ignored when the encryptor
property is set.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---