True, but jasypt namespace is blueprint specific. Outside of blueprint (directly in ConfigAdmin), you have to use your own wrapper.
Regards JB On 02/10/2018 05:32 PM, Ryan Moquin wrote: > You can still put the placeholders in a config file without using blueprint, > but > you need them injected into something that will resolve those placeholders. > In > this case, the only thing I can suggest offhand (and it's not hard), would be > to > use a Configuration listener (I think that's the name of the interface, it's > for > listening to when. PID is available in configuration admin), then when your > config becomes available, you check for the encrypted properties and decrypt > them. You'd have to retrieve the encryption service via your listener. That > is > probably how Blueprint does it. > > Ryan > > > On Sat, Feb 10, 2018, 9:22 AM Weirig, Alex <alex.wei...@technolink.lu > <mailto:alex.wei...@technolink.lu>> wrote: > > Hello, > > I wonder if there is a way to use the jasypt feature in Karaf 4.1.4 to > encrypt passwords in configuration files without having to define the > placeholders using Blueprint but rather using a cfg file in /etc/? > > All the examples I've found so far are rather "old" and still rely on > Blueprint ... I'm not using Blueprint at all in my applications and I > would > appreciate if I didn't have to use it just for this configuration. > > If it was possible to define these placeholders in a cfg file in /etc/ it > would make things easier ... or is there even an easier way to support > encrypted properties with the current Karaf releases? > > Thank you very much for your support > > --- > > Schéin Gréiss, > Mit freundlichen Grüßen, > Meilleures salutations, > Kind regards, > > Alex Weirig > Responsable Technique > > Ville de Luxembourg - Centre Technolink > 2, rue Charles de Tornaco > > <https://maps.google.com/?q=2,+rue+Charles+de+Tornaco&entry=gmail&source=g> > L - 2623 LUXEMBOURG > alex.wei...@technolink.lu <mailto:alex.wei...@technolink.lu> > > Tel: +352 4796 - 6127 > Fax: +352 42 88 81 > www.technolink.lu <http://www.technolink.lu> > > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com