You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by co...@apache.org on 2015/01/09 13:07:05 UTC
camel git commit: Adding another PGP DataFormat configuration option
Repository: camel
Updated Branches:
refs/heads/master 761a878e5 -> 4ec817aa7
Adding another PGP DataFormat configuration option
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/4ec817aa
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/4ec817aa
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/4ec817aa
Branch: refs/heads/master
Commit: 4ec817aa7e2b9d605d17c506a3458c5a24db53c5
Parents: 761a878
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Fri Jan 9 12:06:42 2015 +0000
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Fri Jan 9 12:06:42 2015 +0000
----------------------------------------------------------------------
.../apache/camel/model/dataformat/PGPDataFormat.java | 13 +++++++++++++
1 file changed, 13 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/4ec817aa/camel-core/src/main/java/org/apache/camel/model/dataformat/PGPDataFormat.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/model/dataformat/PGPDataFormat.java b/camel-core/src/main/java/org/apache/camel/model/dataformat/PGPDataFormat.java
index 9f61420..c8a34a1 100644
--- a/camel-core/src/main/java/org/apache/camel/model/dataformat/PGPDataFormat.java
+++ b/camel-core/src/main/java/org/apache/camel/model/dataformat/PGPDataFormat.java
@@ -58,6 +58,8 @@ public class PGPDataFormat extends DataFormatDefinition {
private Integer compressionAlgorithm;
@XmlAttribute
private Integer hashAlgorithm;
+ @XmlAttribute
+ private String signatureVerificationOption;
public PGPDataFormat() {
super("pgp");
@@ -101,6 +103,9 @@ public class PGPDataFormat extends DataFormatDefinition {
if (hashAlgorithm != null) {
setProperty(camelContext, dataFormat, "hashAlgorithm", hashAlgorithm);
}
+ if (signatureVerificationOption != null) {
+ setProperty(camelContext, dataFormat, "signatureVerificationOption", signatureVerificationOption);
+ }
}
public String getSignatureKeyUserid() {
@@ -198,4 +203,12 @@ public class PGPDataFormat extends DataFormatDefinition {
public void setProvider(String provider) {
this.provider = provider;
}
+
+ public String getSignatureVerificationOption() {
+ return signatureVerificationOption;
+ }
+
+ public void setSignatureVerificationOption(String signatureVerificationOption) {
+ this.signatureVerificationOption = signatureVerificationOption;
+ }
}
\ No newline at end of file