cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1394559 - in /cxf/trunk/distribution/src/main/release/samples/ws_security: sign_enc/src/main/java/demo/wssec/client/Client.java ut_sign/src/main/java/demo/wssec/client/Client.java ut_sign/src/main/java/demo/wssec/server/Server.java
Date Fri, 05 Oct 2012 14:56:45 GMT
Author: coheigea
Date: Fri Oct  5 14:56:45 2012
New Revision: 1394559

URL: http://svn.apache.org/viewvc?rev=1394559&view=rev
Log:
[CXF-4545] - ut_sign + sign_enc samples broken in last releases

Modified:
    cxf/trunk/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec/client/Client.java
    cxf/trunk/distribution/src/main/release/samples/ws_security/ut_sign/src/main/java/demo/wssec/client/Client.java
    cxf/trunk/distribution/src/main/release/samples/ws_security/ut_sign/src/main/java/demo/wssec/server/Server.java

Modified: cxf/trunk/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec/client/Client.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec/client/Client.java?rev=1394559&r1=1394558&r2=1394559&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec/client/Client.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec/client/Client.java
Fri Oct  5 14:56:45 2012
@@ -75,7 +75,8 @@ public final class Client {
             outProps.put("signatureKeyIdentifier", "DirectReference");
             outProps.put("signatureParts",
                          "{Element}{" + WSU_NS + "}Timestamp;"
-                         + "{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body");
+                         + "{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body;"
+                         + "{}{http://www.w3.org/2005/08/addressing}ReplyTo;");
 
             bus.getOutInterceptors().add(new WSS4JOutInterceptor(outProps));
 

Modified: cxf/trunk/distribution/src/main/release/samples/ws_security/ut_sign/src/main/java/demo/wssec/client/Client.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/ws_security/ut_sign/src/main/java/demo/wssec/client/Client.java?rev=1394559&r1=1394558&r2=1394559&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/ws_security/ut_sign/src/main/java/demo/wssec/client/Client.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/ws_security/ut_sign/src/main/java/demo/wssec/client/Client.java
Fri Oct  5 14:56:45 2012
@@ -65,7 +65,8 @@ public final class Client {
             outProps.put("signatureKeyIdentifier", "DirectReference");
             outProps.put("signatureParts", 
                          "{Element}{" + WSU_NS + "}Timestamp;"
-                         + "{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body");
+                         + "{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body;"
+                         + "{}{http://www.w3.org/2005/08/addressing}ReplyTo;");
 
             bus.getOutInterceptors().add(new WSS4JOutInterceptor(outProps));
 
@@ -82,8 +83,6 @@ public final class Client {
 
             // Check to make sure that the SOAP Body and Timestamp were signed
             DefaultCryptoCoverageChecker coverageChecker = new DefaultCryptoCoverageChecker();
-            coverageChecker.setSignBody(true);
-            coverageChecker.setSignTimestamp(true);
             bus.getInInterceptors().add(coverageChecker);
 
             GreeterService service = new GreeterService();

Modified: cxf/trunk/distribution/src/main/release/samples/ws_security/ut_sign/src/main/java/demo/wssec/server/Server.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/ws_security/ut_sign/src/main/java/demo/wssec/server/Server.java?rev=1394559&r1=1394558&r2=1394559&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/ws_security/ut_sign/src/main/java/demo/wssec/server/Server.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/ws_security/ut_sign/src/main/java/demo/wssec/server/Server.java
Fri Oct  5 14:56:45 2012
@@ -81,8 +81,6 @@ public class Server {
 
         // Check to make sure that the SOAP Body and Timestamp were signed
         DefaultCryptoCoverageChecker coverageChecker = new DefaultCryptoCoverageChecker();
-        coverageChecker.setSignBody(true);
-        coverageChecker.setSignTimestamp(true);
         bus.getInInterceptors().add(coverageChecker);
 
         BusFactory.setDefaultBus(bus);



Mime
View raw message