You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2013/09/16 16:12:07 UTC

svn commit: r1523656 - in /cxf/branches/2.7.x-fixes/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec: client/Client.java server/Server.java

Author: coheigea
Date: Mon Sep 16 14:12:06 2013
New Revision: 1523656

URL: http://svn.apache.org/r1523656
Log:
Merged revisions 1523654 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1523654 | coheigea | 2013-09-16 15:06:42 +0100 (Mon, 16 Sep 2013) | 2 lines

  Encrypt the UsernameToken rather than the Timestamp in the sample

........

Modified:
    cxf/branches/2.7.x-fixes/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec/client/Client.java
    cxf/branches/2.7.x-fixes/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec/server/Server.java

Modified: cxf/branches/2.7.x-fixes/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec/client/Client.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec/client/Client.java?rev=1523656&r1=1523655&r2=1523656&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec/client/Client.java (original)
+++ cxf/branches/2.7.x-fixes/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec/client/Client.java Mon Sep 16 14:12:06 2013
@@ -38,6 +38,8 @@ import org.apache.cxf.ws.security.wss4j.
 
 public final class Client {
 
+    private static final String WSSE_NS 
+        = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
     private static final String WSU_NS
         = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
 
@@ -66,7 +68,7 @@ public final class Client {
             outProps.put("encryptionPropFile", "etc/Client_Encrypt.properties");
             outProps.put("encryptionKeyIdentifier", "IssuerSerial");
             outProps.put("encryptionParts",
-                         "{Element}{" + WSU_NS + "}Timestamp;"
+                         "{Element}{" + WSSE_NS + "}UsernameToken;"
                          + "{Content}{http://schemas.xmlsoap.org/soap/envelope/}Body");
 
             outProps.put("signaturePropFile", "etc/Client_Sign.properties");

Modified: cxf/branches/2.7.x-fixes/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec/server/Server.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec/server/Server.java?rev=1523656&r1=1523655&r2=1523656&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec/server/Server.java (original)
+++ cxf/branches/2.7.x-fixes/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec/server/Server.java Mon Sep 16 14:12:06 2013
@@ -34,6 +34,8 @@ import org.apache.cxf.ws.security.wss4j.
 import org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor;
 
 public class Server {
+    private static final String WSSE_NS 
+        = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
     private static final String WSU_NS
         = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
 
@@ -57,7 +59,7 @@ public class Server {
         outProps.put("encryptionUser", "clientx509v1");
         outProps.put("encryptionPropFile", "etc/Server_SignVerf.properties");
         outProps.put("encryptionKeyIdentifier", "IssuerSerial");
-        outProps.put("encryptionParts", "{Element}{" + WSU_NS + "}Timestamp;"
+        outProps.put("encryptionParts", "{Element}{" + WSSE_NS + "}UsernameToken;"
                          + "{Content}{http://schemas.xmlsoap.org/soap/envelope/}Body");
 
         outProps.put("signaturePropFile", "etc/Server_Decrypt.properties");