Ask questions and see you at January, 10th, 8.PM. CET: youtube.com/c/bienadam
Also checkout recent episode:
Please keep the questions Jakarta EE-stic. Means: as short and as concise as only possible. Feel free to ask several, shorter questions. Upcoming airhacks.tv events are also going to be announced at meetup.com/airhacks
I'm currently using AttributeConverters in JPA to encrypt my fields. However I need context based encryption which means my encryption algorithm needs external data to encrypt and decrypt (and always the same context). This context is NOT stored with the data. The external data is request based (e.g. an order and account number). AFAIK it is not possible to pass context to an AttributeConverter.
So what would be your approach to encrypt and decrypt fields? Of course I can do everything programmatically but then I also need to change my entities what I would like to prevent because then I can re-use them.
Would it e.g. be possible (and efficient) to inject a @RequestScoped bean into the AttributeConverter?