java - Jackson -- Recursively replace matched fields -


See the following (sorted into a POJO) and I need to encrypt each encrypted with a list of areas regardless of its depth I

, depending on the field name (s). For example, I want to encrypt some parts of the document (specify password and quantity) for storage.

I have a piece of encryption, but a good approach to crossing Jasononode is to find every incident in the matching field and encrypt / change it.

Hidden (via @Jason Ignor, for example, will not solve the problem because I need to store the data). This is for some system data offline, file backup.

Note that the fields I want to match (Passward and volume Ordrd), they are of different types and password appeared several times at different levels "" "" "" Name ": "foo", "id": "123456", "password", "time", "communities": [{ "name": "Administrator", "location": "xyz", "password": "baz"}

I model the tree, {"name": "member", "location": "xyz", "password": "baz"}], "quantity sort" Examples of using the document mean the structure of the document. Sector which is using JsonNode.getElements () can be used to get all the elements of any name, but it's only value, not key it could take any decision with any experience.

you can use a custom Jesnfiltr, and overwrite the serial Sfild Law @ ( Value } Else {// property author will not be modified. SerializeAsField (bean, jigen, prov);}}


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -