cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject git commit: Use "Id" instead of "ID" for Signatures
Date Fri, 21 Feb 2014 17:02:58 GMT
Repository: cxf
Updated Branches:
  refs/heads/master f52704565 -> 03a0a7e6f


Use "Id" instead of "ID" for Signatures


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

Branch: refs/heads/master
Commit: 03a0a7e6f5f475e203489b9a03102c5ae77633f8
Parents: f527045
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Fri Feb 21 16:38:16 2014 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Fri Feb 21 17:02:46 2014 +0000

----------------------------------------------------------------------
 .../cxf/rs/security/xml/XmlSigOutInterceptor.java       | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/03a0a7e6/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/xml/XmlSigOutInterceptor.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/xml/XmlSigOutInterceptor.java
b/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/xml/XmlSigOutInterceptor.java
index 86c5275..d7379ae 100644
--- a/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/xml/XmlSigOutInterceptor.java
+++ b/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/xml/XmlSigOutInterceptor.java
@@ -171,8 +171,8 @@ public class XmlSigOutInterceptor extends AbstractXmlSecOutInterceptor
{
         newDoc.adoptNode(docEl);
         Element object = newDoc.createElementNS(Constants.SignatureSpecNS, "ds:Object");
         object.appendChild(docEl);
-        docEl.setAttributeNS(null, "ID", id);
-        docEl.setIdAttributeNS(null, "ID", true);  
+        docEl.setAttributeNS(null, "Id", id);
+        docEl.setIdAttributeNS(null, "Id", true);  
         
         XMLSignature sig = new XMLSignature(newDoc, "", sigAlgo);
         newDoc.appendChild(sig.getElement());
@@ -194,8 +194,8 @@ public class XmlSigOutInterceptor extends AbstractXmlSecOutInterceptor
{
         Document newDoc = DOMUtils.createDocument();
         doc.removeChild(docEl);
         newDoc.adoptNode(docEl);
-        docEl.setAttributeNS(null, "ID", id);
-        docEl.setIdAttributeNS(null, "ID", true);  
+        docEl.setAttributeNS(null, "Id", id);
+        docEl.setIdAttributeNS(null, "Id", true);  
         
         Element root = newDoc.createElementNS(envelopeQName.getNamespaceURI(), 
                 envelopeQName.getPrefix() + ":" + envelopeQName.getLocalPart());
@@ -217,8 +217,8 @@ public class XmlSigOutInterceptor extends AbstractXmlSecOutInterceptor
{
             String referenceURI,
             String sigAlgo,
             String digestAlgo) throws Exception {
-        doc.getDocumentElement().setAttributeNS(null, "ID", id);
-        doc.getDocumentElement().setIdAttributeNS(null, "ID", true);    
+        doc.getDocumentElement().setAttributeNS(null, "Id", id);
+        doc.getDocumentElement().setIdAttributeNS(null, "Id", true);    
     
         XMLSignature sig = new XMLSignature(doc, "", sigAlgo);
         doc.getDocumentElement().appendChild(sig.getElement());


Mime
View raw message