Hi Claus,
I have anyways sent a follow-up today! I know we can do it with Java code...and
currently that is the same we are doing. Want to know if any existing camel
component can perform the same steps (see below java code)!
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>
-----Original Message-----
From: Claus Ibsen [mailto:[email protected]]
Sent: Tuesday, October 08, 2013 2:27 PM
To: [email protected]
Subject: Re: MD5 digest calculation
Hi
See
http://stackoverflow.com/questions/304268/getting-a-files-md5-checksum-in-java
And then you can just have a java bean doing the MD5 and use the bean in Camel.
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.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen