camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject camel git commit: Added some signature PGP options to the DataFormat
Date Thu, 08 Jan 2015 12:09:09 GMT
Repository: camel
Updated Branches:
  refs/heads/master fe6220027 -> 237b02264


Added some signature PGP options to the DataFormat


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/237b0226
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/237b0226
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/237b0226

Branch: refs/heads/master
Commit: 237b022649c8ec99121faaddeefbd60daaa326f9
Parents: fe62200
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Thu Jan 8 12:08:33 2015 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Thu Jan 8 12:08:56 2015 +0000

----------------------------------------------------------------------
 .../camel/model/dataformat/PGPDataFormat.java   | 52 ++++++++++++++++++++
 1 file changed, 52 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/237b0226/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 1959b48..9f61420 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
@@ -37,10 +37,16 @@ public class PGPDataFormat extends DataFormatDefinition {
     @XmlAttribute
     private String keyUserid;
     @XmlAttribute
+    private String signatureKeyUserid;
+    @XmlAttribute
     private String password;
     @XmlAttribute
+    private String signaturePassword;
+    @XmlAttribute
     private String keyFileName;
     @XmlAttribute
+    private String signatureKeyFileName;
+    @XmlAttribute
     private Boolean armored;
     @XmlAttribute
     private Boolean integrity;
@@ -50,6 +56,8 @@ public class PGPDataFormat extends DataFormatDefinition {
     private Integer algorithm;
     @XmlAttribute
     private Integer compressionAlgorithm;
+    @XmlAttribute
+    private Integer hashAlgorithm;
 
     public PGPDataFormat() {
         super("pgp");
@@ -60,12 +68,21 @@ public class PGPDataFormat extends DataFormatDefinition {
         if (keyUserid != null) {
             setProperty(camelContext, dataFormat, "keyUserid", keyUserid);
         }
+        if (signatureKeyUserid != null) {
+            setProperty(camelContext, dataFormat, "signatureKeyUserid", signatureKeyUserid);
+        }
         if (password != null) {
             setProperty(camelContext, dataFormat, "password", password);
         }
+        if (signaturePassword != null) {
+            setProperty(camelContext, dataFormat, "signaturePassword", signaturePassword);
+        }
         if (keyFileName != null) {
             setProperty(camelContext, dataFormat, "keyFileName", keyFileName);
         }
+        if (signatureKeyFileName != null) {
+            setProperty(camelContext, dataFormat, "signatureKeyFileName", signatureKeyFileName);
+        }
         if (armored != null) {
             setProperty(camelContext, dataFormat, "armored", armored);
         }
@@ -81,6 +98,41 @@ public class PGPDataFormat extends DataFormatDefinition {
         if (compressionAlgorithm != null) {
             setProperty(camelContext, dataFormat, "compressionAlgorithm", compressionAlgorithm);
         }
+        if (hashAlgorithm != null) {
+            setProperty(camelContext, dataFormat, "hashAlgorithm", hashAlgorithm);
+        }
+    }
+
+    public String getSignatureKeyUserid() {
+        return signatureKeyUserid;
+    }
+
+    public void setSignatureKeyUserid(String signatureKeyUserid) {
+        this.signatureKeyUserid = signatureKeyUserid;
+    }
+
+    public String getSignaturePassword() {
+        return signaturePassword;
+    }
+
+    public void setSignaturePassword(String signaturePassword) {
+        this.signaturePassword = signaturePassword;
+    }
+
+    public String getSignatureKeyFileName() {
+        return signatureKeyFileName;
+    }
+
+    public void setSignatureKeyFileName(String signatureKeyFileName) {
+        this.signatureKeyFileName = signatureKeyFileName;
+    }
+
+    public Integer getHashAlgorithm() {
+        return hashAlgorithm;
+    }
+
+    public void setHashAlgorithm(Integer hashAlgorithm) {
+        this.hashAlgorithm = hashAlgorithm;
     }
 
     public Boolean getArmored() {


Mime
View raw message