You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by we...@apache.org on 2005/10/11 10:22:12 UTC

svn commit: r312836 - in /webservices/wss4j/trunk/test: interop/TestJAXRPCHandler.java wssec/TestWSSecurity10.java wssec/TestWSSecurity2.java wssec/TestWSSecurity9.java

Author: werner
Date: Tue Oct 11 01:22:04 2005
New Revision: 312836

URL: http://svn.apache.org/viewcvs?rev=312836&view=rev
Log:
Some fixes and modifications for configurable JCE security
provider, setting of AES-128 as default symmetric encryption
algorithm.

Modified:
    webservices/wss4j/trunk/test/interop/TestJAXRPCHandler.java
    webservices/wss4j/trunk/test/wssec/TestWSSecurity10.java
    webservices/wss4j/trunk/test/wssec/TestWSSecurity2.java
    webservices/wss4j/trunk/test/wssec/TestWSSecurity9.java

Modified: webservices/wss4j/trunk/test/interop/TestJAXRPCHandler.java
URL: http://svn.apache.org/viewcvs/webservices/wss4j/trunk/test/interop/TestJAXRPCHandler.java?rev=312836&r1=312835&r2=312836&view=diff
==============================================================================
--- webservices/wss4j/trunk/test/interop/TestJAXRPCHandler.java (original)
+++ webservices/wss4j/trunk/test/interop/TestJAXRPCHandler.java Tue Oct 11 01:22:04 2005
@@ -78,6 +78,7 @@
         config.put("signatureKeyIdentifier", "DirectReference");
         config.put("signaturePropFile", "wsstest.properties");
         config.put("encryptionKeyIdentifier", "EmbeddedKeyName");
+        config.put("encryptionSymAlgorithm", "http://www.w3.org/2001/04/xmlenc#tripledes-cbc");
         config.put("EmbeddedKeyCallbackClass", "org.apache.ws.axis.oasis.PWCallback1");
         config.put("EmbeddedKeyName", "SessionKey");
         invokeService (config, 4);

Modified: webservices/wss4j/trunk/test/wssec/TestWSSecurity10.java
URL: http://svn.apache.org/viewcvs/webservices/wss4j/trunk/test/wssec/TestWSSecurity10.java?rev=312836&r1=312835&r2=312836&view=diff
==============================================================================
--- webservices/wss4j/trunk/test/wssec/TestWSSecurity10.java (original)
+++ webservices/wss4j/trunk/test/wssec/TestWSSecurity10.java Tue Oct 11 01:22:04 2005
@@ -192,6 +192,8 @@
         wsEncrypt.setKeyIdentifierType(WSConstants.EMBED_SECURITY_TOKEN_REF);
         wsEncrypt.setSecurityTokenReference(secRef);
         wsEncrypt.setKey(key);
+        wsEncrypt.setSymmetricEncAlgorithm(WSConstants.TRIPLE_DES);
+        
 
         //Step 4 :: Encrypting using the key.
         Document encDoc = wsEncrypt.build(doc, crypto);

Modified: webservices/wss4j/trunk/test/wssec/TestWSSecurity2.java
URL: http://svn.apache.org/viewcvs/webservices/wss4j/trunk/test/wssec/TestWSSecurity2.java?rev=312836&r1=312835&r2=312836&view=diff
==============================================================================
--- webservices/wss4j/trunk/test/wssec/TestWSSecurity2.java (original)
+++ webservices/wss4j/trunk/test/wssec/TestWSSecurity2.java Tue Oct 11 01:22:04 2005
@@ -137,6 +137,7 @@
         WSEncryptBody builder = new WSEncryptBody();
         builder.setUserInfo("wss4jcert");
         builder.setKeyIdentifierType(WSConstants.X509_KEY_IDENTIFIER);
+        builder.setSymmetricEncAlgorithm(WSConstants.TRIPLE_DES);
         Document doc = unsignedEnvelope.getAsDocument();
         log.info("Before Encryption Triple DES....");
         Document encryptedDoc = builder.build(doc, crypto);

Modified: webservices/wss4j/trunk/test/wssec/TestWSSecurity9.java
URL: http://svn.apache.org/viewcvs/webservices/wss4j/trunk/test/wssec/TestWSSecurity9.java?rev=312836&r1=312835&r2=312836&view=diff
==============================================================================
--- webservices/wss4j/trunk/test/wssec/TestWSSecurity9.java (original)
+++ webservices/wss4j/trunk/test/wssec/TestWSSecurity9.java Tue Oct 11 01:22:04 2005
@@ -155,6 +155,7 @@
         
         encrypt.setUserInfo("16c73ab6-b892-458f-abf5-2f875f74882e");
         encrypt.setKeyIdentifierType(WSConstants.EMBEDDED_KEYNAME);
+        encrypt.setSymmetricEncAlgorithm(WSConstants.TRIPLE_DES);        
         encrypt.setKey(key);
 
         sign.setUserInfo("16c73ab6-b892-458f-abf5-2f875f74882e", "security");



---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org