-
Notifications
You must be signed in to change notification settings - Fork 17
Description
I am using Jackson Json Crypto module v 1.1.0 for encryption as it is compatible with JDK 8. Encryption is working fine and data is getting saved in encrypted form but while deserializing, data is not getting back converted to actual data. I believe the @Encrypt annotation which is used and defined on the field is not getting triggered before the object mapper does deserializing. I have downloaded the decompiled library code as well and tried debugging, where i found deserializing module constructors are getting called initially but later the @OverRide deserialize function is not getting triggered.
Encrypted O/P
"order_id": { "salt": "Bf53VhtWMF95Cp7wLb8EJ9tRfIc=", "iv": "X83bkmfrvHk4SGCTJ+zx/g==", "value": "L8VEVKkEp0j7KG0cG2IFjHdNmMKcIxnLIb0+fiNqnDr2AXRrFgwJaaR6E8f5n7DI" }
Post-decryption it should be
"order_id": "abcd_!234"
But the O/P is coming the encrypted value as it is
"order_id": { "salt": "Bf53VhtWMF95Cp7wLb8EJ9tRfIc=", "iv": "X83bkmfrvHk4SGCTJ+zx/g==", "value": "L8VEVKkEp0j7KG0cG2IFjHdNmMKcIxnLIb0+fiNqnDr2AXRrFgwJaaR6E8f5n7DI" }