Hi Goyal, Q1, java code is required (link of claus) or http://docs.oracle.com/javase/6/docs/api/java/security/MessageDigest.html#getInstance%28java.lang.String%29
Q2 : this is the way to go Regards, Charles On Tue, Oct 8, 2013 at 10:18 AM, Goyal, Arpit <[email protected]> wrote: > Hi Charles, > > Q1. > Do you think this is possible with the Crypto Digital Signature? > > Signature notary = Signature.getInstance("SHA1withRSA"); > notary.initSign(pkey); > notary.update(strFieldsToHash.getBytes()); > byte[] signed = notary.sign(); > > MessageDigest md = MessageDigest.getInstance("MD5"); > md.update(signed); > byte[] mdbytes = md.digest(signed); > > Q2. > Crypto component puts the signed content into the header > 'CamelDigitalSignature'. Is there a way to inform put the signed content > into the body? Right now I have to do the following for getting header into > body: > > <camel:setBody> > <camle:simple> ${header.CamelDigitalSignature} </camel:simple> > <camel:setBody> > > > Regards, > Arpit. > > -----Original Message----- > From: Charles Moulliard [mailto:[email protected]] > Sent: Monday, October 07, 2013 12:09 PM > To: [email protected] > Subject: Re: MD5 digest calculation > > You can use the camel crypto component/dataformat for that purpose : > http://camel.apache.org/crypto-digital-signatures.html > > > On Mon, Oct 7, 2013 at 8:32 AM, Goyal, Arpit <[email protected]> wrote: > > > Hi, > > > > Is there a component to do MD5 digest calculation in camel? > > > > Regards, > > Arpit. > > > > > > -- > Charles Moulliard > Apache Committer / Architect @RedHat > Twitter : @cmoulliard | Blog : http://cmoulliard.github.io > -- Charles Moulliard Apache Committer / Architect @RedHat Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
