You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by co...@apache.org on 2014/09/22 11:05:36 UTC
svn commit: r1626704 -
/santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/encryption/XMLCipher.java
Author: coheigea
Date: Mon Sep 22 09:05:36 2014
New Revision: 1626704
URL: http://svn.apache.org/r1626704
Log:
[SANTUARIO-399] - XMLCipher fails to declare signature namespace on xenc:EncryptionMethod/ds:DigestMethod elements
Modified:
santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/encryption/XMLCipher.java
Modified: santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/encryption/XMLCipher.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/encryption/XMLCipher.java?rev=1626704&r1=1626703&r2=1626704&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/encryption/XMLCipher.java (original)
+++ santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/encryption/XMLCipher.java Mon Sep 22 09:05:36 2014
@@ -3218,6 +3218,11 @@ public class XMLCipher {
Element digestElement =
XMLUtils.createElementInSignatureSpace(contextDocument, Constants._TAG_DIGESTMETHOD);
digestElement.setAttributeNS(null, "Algorithm", digestAlgorithm);
+ digestElement.setAttributeNS(
+ Constants.NamespaceSpecNS,
+ "xmlns:" + ElementProxy.getDefaultPrefix(Constants.SignatureSpecNS),
+ Constants.SignatureSpecNS
+ );
result.appendChild(digestElement);
}
if (mgfAlgorithm != null) {