You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2016/08/25 08:43:20 UTC
[jira] [Created] (CAY-2107) cayenne-crypto: Lazy initialization of
crypto subsystem
Andrus Adamchik created CAY-2107:
------------------------------------
Summary: cayenne-crypto: Lazy initialization of crypto subsystem
Key: CAY-2107
URL: https://issues.apache.org/jira/browse/CAY-2107
Project: Cayenne
Issue Type: Improvement
Reporter: Andrus Adamchik
Assignee: Andrus Adamchik
I have a deployment scenario where secret keys are not available on app startup, and users "unlock" the KeySource at a later time. Until then I'd still like my Cayenne stack to be operational for entities that do not require encryption. Currently this is not possible as DefaultValueTransformerFactory and DefaultBytesTransformerFactory are initialized eagerly and that requires a working KeySource.
A possible solution to that is lazy initialization of DefaultValueTransformerFactory and DefaultBytesTransformerFactory which can be achieved via decoration in DI, that injects decorated instance as a Provider.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)