Hi Did you read the documentation about jasypt properties parser http://camel.apache.org/jasypt
On Thu, Aug 21, 2014 at 12:20 PM, arvind <[email protected]> wrote: > Hi All, > As I am failed to do password encryption/decryption using camel Jasypt on > the fly . I tried with my own Java bean class which does > # reading the properties file. > myproperties.properties > --------------------- > password= abc > > # changing the plain text to encrypted string and writing into the > properties file. > password= Rlc3QxMjM\= > > # Than class is able to decrypt the value to its original plain string "abc" > and holding as one of the bean property value without writing it to > properties file. > xyz=abc > > > I want to use the decrypted value(original plain string i.e "abc") inside > the camel route uri without exposing the value to properties file or xml. > > route of xml file > =================== > > <route id="ECLTransfer2"> > <from > uri="ftp://[email protected]:21//BPRXFFiles?filter=#eclFilter&idempotent=true&idempotentRepository=#eclFileStore&localWorkDirectory=C:/temp&passiveMode=true&binary=true&disconnect=true&password= > ????" /> > > > <to uri="file://D:/processed?tempPrefix=Part_"/> > > </route> > ================== > Is there any way to use the bean class property value directly into the > above xml like <from uri=.... > ....;password=xyz"/> or any other way to get the decrypted value of > password from bean class into the xml ? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Problem-encrypting-the-password-using-Camel-Jasypt-component-tp5753644p5755485.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
