No, I ran the sample code provided by Camel in Action (chapter1-file-copy)
with slight modification:
In the pom.xml:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-crypto</artifactId>
<version>${camel-version}</version>
</dependency>
--------------------------------------------
public class FileCopierWithCamel {
public static void main(String args[]) throws Exception {
// create CamelContext
CamelContext context = new DefaultCamelContext();
// add our route to the CamelContext
context.addRoutes(new RouteBuilder() {
public void configure() {
from("file:data/inbox?noop=true")
.marshal().pgp("pubring.gpg","")
.to("file:data/outbox?fileName=${date:now:yyyyMMdd-hh:mm:ss}.pdf.PGP");
}
});
// start the route and let it do its work
context.start();
Thread.sleep(10000);
// stop the CamelContext
context.stop();
}
}
I've already set the classpath to 'pubring.gpg' and now I m getting
different error:
*java.io.FileNotFoundException: Cannot find resource in classpath for URI:
pubring.gpg*
at
org.apache.camel.util.ResourceHelper.resolveMandatoryResourceAsInputStream(ResourceHelper.java:92)[camel-core-2.10.0.jar:2.10.0]
at
org.apache.camel.converter.crypto.PGPDataFormatUtil.findPublicKey(PGPDataFormatUtil.java:51)[camel-crypto-2.10.0.jar:2.10.0]
--
View this message in context:
http://camel.465427.n5.nabble.com/does-Camel-support-PGP-Encryption-tp5718723p5718814.html
Sent from the Camel Development mailing list archive at Nabble.com.