cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1332712 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
Date Tue, 01 May 2012 15:53:34 GMT
Author: coheigea
Date: Tue May  1 15:53:34 2012
New Revision: 1332712

URL: http://svn.apache.org/viewvc?rev=1332712&view=rev
Log:
Changing STSClient UseKey dsig prefix to match Santuario default

Modified:
    cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java?rev=1332712&r1=1332711&r2=1332712&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
(original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
Tue May  1 15:53:34 2012
@@ -804,8 +804,8 @@ public class STSClient implements Config
     protected void writeElementsForRSTPublicKey(W3CDOMStreamWriter writer,
             X509Certificate cert) throws Exception {
         writer.writeStartElement("wst", "UseKey", namespace);
-        writer.writeStartElement("dsig", "KeyInfo", "http://www.w3.org/2000/09/xmldsig#");
-        writer.writeNamespace("dsig", "http://www.w3.org/2000/09/xmldsig#");
+        writer.writeStartElement("ds", "KeyInfo", "http://www.w3.org/2000/09/xmldsig#");
+        writer.writeNamespace("ds", "http://www.w3.org/2000/09/xmldsig#");
 
         boolean useCert = useCertificateForConfirmationKeyInfo;
         String useCertStr = (String)getProperty(SecurityConstants.STS_TOKEN_USE_CERT_FOR_KEYINFO);
@@ -817,7 +817,7 @@ public class STSClient implements Config
             certElem.addCertificate(cert);
             writer.getCurrentNode().appendChild(certElem.getElement());
         } else {
-            writer.writeStartElement("dsig", "KeyValue", "http://www.w3.org/2000/09/xmldsig#");
+            writer.writeStartElement("ds", "KeyValue", "http://www.w3.org/2000/09/xmldsig#");
             PublicKey key = cert.getPublicKey();
             String pubKeyAlgo = key.getAlgorithm();
             if ("DSA".equalsIgnoreCase(pubKeyAlgo)) {



Mime
View raw message