Reputation: 8833
I have a processor that logs into a database, and tags a message based on info there and in the message.
The question is what is the best way to set the connection string for the processor so that it is secure?
Right now I am loading a .cfg file in a spring blueprint xml, and binding it to properties in the processor with the bind annotation. But I'm wondering if there is a better, more secure way to do it.
Upvotes: 0
Views: 87
Reputation: 8833
What I ended up doing was creating a new bean specifically for retrieving core configuration information, and then just using @BeanInject
, or just passing it in as a class argument, for the classes that needed it.
Now I can handle the security of it how I want (or at least, much better than before), and if I want, I can easily replace/alter it to pick up settings from a trusted central server instead if need be.
Upvotes: 0