I need to add signature to a file using apache camel. when i checked in camel documentation, found crypto:sign component where it creates the signature and stores it in the Header keyed by the constant org.apache.camel.component.crypto.DigitalSignatureConstants.SIGNATURE, i.e. "CamelDigitalSignature". The signature can be verified using crypto:verify component, by reading in the contents of this header and do the verification calculation.
But in my case, i need to write the signature to a separate file. for example if the input file is sample. After adding signature there should be two output files (1. sample 2. sample.signed). sample is original file and sample.signed is signature file.
Signature addition should be done using PGP Technique. Can anyone help me on this