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/09/10 17:25:51 UTC

camel git commit: Fix for JDK9 compiler

Repository: camel
Updated Branches:
  refs/heads/master 3db5fcca8 -> feac7f08d


Fix for JDK9 compiler


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

Branch: refs/heads/master
Commit: feac7f08d15c7cf394a05a62024fb2ee526e5ed0
Parents: 3db5fcc
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Thu Sep 10 16:25:12 2015 +0100
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Thu Sep 10 16:25:12 2015 +0100

----------------------------------------------------------------------
 .../component/xmlsecurity/api/XAdESSignatureProperties.java     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/feac7f08/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/api/XAdESSignatureProperties.java
----------------------------------------------------------------------
diff --git a/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/api/XAdESSignatureProperties.java b/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/api/XAdESSignatureProperties.java
index c6cb160..06ef1c7 100644
--- a/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/api/XAdESSignatureProperties.java
+++ b/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/api/XAdESSignatureProperties.java
@@ -36,6 +36,7 @@ import javax.security.auth.x500.X500Principal;
 import javax.xml.crypto.dom.DOMStructure;
 import javax.xml.crypto.dsig.DigestMethod;
 import javax.xml.crypto.dsig.Reference;
+import javax.xml.crypto.dsig.Transform;
 import javax.xml.crypto.dsig.XMLObject;
 import javax.xml.crypto.dsig.XMLSignature;
 import javax.xml.parsers.ParserConfigurationException;
@@ -51,7 +52,6 @@ import org.xml.sax.SAXException;
 
 import org.apache.camel.Message;
 import org.apache.commons.codec.binary.Base64;
-
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -611,8 +611,9 @@ public class XAdESSignatureProperties implements XmlSignatureProperties {
             return result;
         }
         String signedPropertiesId = "_" + UUID.randomUUID().toString();
+        List<Transform> transforms = Collections.emptyList();
         Reference ref = input.getSignatureFactory().newReference("#" + signedPropertiesId,
-                input.getSignatureFactory().newDigestMethod(input.getContentDigestAlgorithm(), null), Collections.emptyList(),
+                input.getSignatureFactory().newDigestMethod(input.getContentDigestAlgorithm(), null), transforms,
                 "http://uri.etsi.org/01903#SignedProperties", null);
 
         Node parent = input.getParent();