cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1418688 - in /cxf/trunk/distribution/src/main/release/samples/ws_security: sign_enc/src/main/java/demo/wssec/client/ sign_enc/src/main/java/demo/wssec/server/ ut_sign/src/main/java/demo/wssec/client/ ut_sign/src/main/java/demo/wssec/server/
Date Sat, 08 Dec 2012 15:33:54 GMT
Author: coheigea
Date: Sat Dec  8 15:33:53 2012
New Revision: 1418688

URL: http://svn.apache.org/viewvc?rev=1418688&view=rev
Log:
Specifying encryption + signature algorithms in the demos

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/sign_enc/src/main/java/demo/wssec/server/Server.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=1418688&r1=1418687&r2=1418688&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
Sat Dec  8 15:33:53 2012
@@ -77,6 +77,10 @@ public final class Client {
                          + "{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body;"
                          + "{}{http://www.w3.org/2005/08/addressing}ReplyTo;");
 
+            outProps.put("encryptionKeyTransportAlgorithm", 
+                         "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p");
+            outProps.put("signatureAlgorithm", "http://www.w3.org/2000/09/xmldsig#rsa-sha1");
+
             bus.getOutInterceptors().add(new WSS4JOutInterceptor(outProps));
 
             Map<String, Object> inProps = new HashMap<String, Object>();
@@ -91,6 +95,10 @@ public final class Client {
             inProps.put("signaturePropFile", "etc/Client_Encrypt.properties");
             inProps.put("signatureKeyIdentifier", "DirectReference");
 
+            inProps.put("encryptionKeyTransportAlgorithm", 
+                         "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p");
+            inProps.put("signatureAlgorithm", "http://www.w3.org/2000/09/xmldsig#rsa-sha1");
+
             bus.getInInterceptors().add(new WSS4JInInterceptor(inProps));
 
             // Check to make sure that the SOAP Body and Timestamp were signed,

Modified: cxf/trunk/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec/server/Server.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec/server/Server.java?rev=1418688&r1=1418687&r2=1418688&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec/server/Server.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/ws_security/sign_enc/src/main/java/demo/wssec/server/Server.java
Sat Dec  8 15:33:53 2012
@@ -73,6 +73,10 @@ public class Server {
         outProps.put("signatureParts", "{Element}{" + WSU_NS + "}Timestamp;"
                          + "{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body");
 
+        outProps.put("encryptionKeyTransportAlgorithm", 
+                         "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p");
+        outProps.put("signatureAlgorithm", "http://www.w3.org/2000/09/xmldsig#rsa-sha1");
+
         bus.getOutInterceptors().add(new WSS4JOutInterceptor(outProps));
 
         Map<String, Object> inProps = new HashMap<String, Object>();
@@ -86,6 +90,9 @@ public class Server {
 
         inProps.put("signaturePropFile", "etc/Server_SignVerf.properties");
         inProps.put("signatureKeyIdentifier", "DirectReference");
+        inProps.put("encryptionKeyTransportAlgorithm", 
+                    "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p");
+        inProps.put("signatureAlgorithm", "http://www.w3.org/2000/09/xmldsig#rsa-sha1");
 
         bus.getInInterceptors().add(new WSS4JInInterceptor(inProps));
 

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=1418688&r1=1418687&r2=1418688&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
Sat Dec  8 15:33:53 2012
@@ -66,6 +66,7 @@ public final class Client {
                          "{Element}{" + WSU_NS + "}Timestamp;"
                          + "{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body;"
                          + "{}{http://www.w3.org/2005/08/addressing}ReplyTo;");
+            outProps.put("signatureAlgorithm", "http://www.w3.org/2000/09/xmldsig#rsa-sha1");
 
             bus.getOutInterceptors().add(new WSS4JOutInterceptor(outProps));
 
@@ -77,6 +78,7 @@ public final class Client {
 
             inProps.put("signaturePropFile", "etc/Client_Encrypt.properties");
             inProps.put("signatureKeyIdentifier", "DirectReference");
+            inProps.put("signatureAlgorithm", "http://www.w3.org/2000/09/xmldsig#rsa-sha1");
 
             bus.getInInterceptors().add(new WSS4JInInterceptor(inProps));
 

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=1418688&r1=1418687&r2=1418688&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
Sat Dec  8 15:33:53 2012
@@ -65,6 +65,7 @@ public class Server {
         outProps.put("signatureKeyIdentifier", "DirectReference");
         outProps.put("signatureParts", "{Element}{" + WSU_NS + "}Timestamp;"
                          + "{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body");
+        outProps.put("signatureAlgorithm", "http://www.w3.org/2000/09/xmldsig#rsa-sha1");
 
         bus.getOutInterceptors().add(new WSS4JOutInterceptor(outProps));
 
@@ -76,6 +77,7 @@ public class Server {
 
         inProps.put("signaturePropFile", "etc/Server_SignVerf.properties");
         inProps.put("signatureKeyIdentifier", "DirectReference");
+        inProps.put("signatureAlgorithm", "http://www.w3.org/2000/09/xmldsig#rsa-sha1");
 
         bus.getInInterceptors().add(new WSS4JInInterceptor(inProps));
 



Mime
View raw message