0

I need to add signature to a file not on the camel exchange, to a detached file using camel pgp. for example sample.json is plain file. after signing using camel PGP there should be two files, one is sample.json and sample.signed

rocky
  • 753
  • 2
  • 10
  • 26

1 Answers1

1

One approach is described here

The filename / file extension could be edited before using the file producer like this:

.setHeader(Exchange.FILE_NAME, constant(filenameWithoutExtension + '.signed'))
metters
  • 533
  • 1
  • 8
  • 17