[jbossws-commits] JBossWS SVN: r16001 - in stack/native/branches/jbossws-native-3.1.2: modules/core and 3 other directories.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Mon Mar 19 11:40:36 EDT 2012


Author: alessio.soldano at jboss.com
Date: 2012-03-19 11:40:35 -0400 (Mon, 19 Mar 2012)
New Revision: 16001

Modified:
   stack/native/branches/jbossws-native-3.1.2/modules/core/pom.xml
   stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/extensions/security/STRTransform.java
   stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/extensions/security/operation/EncryptionOperation.java
   stack/native/branches/jbossws-native-3.1.2/pom.xml
   stack/native/branches/jbossws-native-3.1.2/src/main/scripts/assembly-deploy-artifacts.xml
Log:
[JBPAPP-7599] Moving to Santuario 1.5.1, adding gcm based algorithms and defaulting to aes-128-gcm


Modified: stack/native/branches/jbossws-native-3.1.2/modules/core/pom.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/core/pom.xml	2012-03-19 14:24:23 UTC (rev 16000)
+++ stack/native/branches/jbossws-native-3.1.2/modules/core/pom.xml	2012-03-19 15:40:35 UTC (rev 16001)
@@ -171,7 +171,7 @@
       <artifactId>wsdl4j</artifactId>
     </dependency>
     <dependency>
-      <groupId>org.apache</groupId>
+      <groupId>org.apache.santuario</groupId>
       <artifactId>xmlsec</artifactId>
     </dependency>
     <dependency>

Modified: stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/extensions/security/STRTransform.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/extensions/security/STRTransform.java	2012-03-19 14:24:23 UTC (rev 16000)
+++ stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/extensions/security/STRTransform.java	2012-03-19 15:40:35 UTC (rev 16001)
@@ -22,6 +22,7 @@
 package org.jboss.ws.extensions.security;
 
 import java.io.IOException;
+import java.io.OutputStream;
 
 import javax.xml.parsers.ParserConfigurationException;
 
@@ -88,9 +89,15 @@
       return STR_URI;
    }
 
+   @Override
+   protected XMLSignatureInput enginePerformTransform(XMLSignatureInput input, Transform transformObject) throws IOException, CanonicalizationException,
+         InvalidCanonicalizerException, TransformationException, ParserConfigurationException, SAXException
+   {
+      return enginePerformTransform(input, null, transformObject);
+   }
 
    @Override
-   protected XMLSignatureInput enginePerformTransform(XMLSignatureInput input) throws IOException, CanonicalizationException,
+   protected XMLSignatureInput enginePerformTransform(XMLSignatureInput input, OutputStream os, Transform transformObject) throws IOException, CanonicalizationException,
          InvalidCanonicalizerException, TransformationException, ParserConfigurationException, SAXException
    {
 
@@ -114,7 +121,7 @@
          element = token.getSTRTransformElement();
 
          // Obtain the canonicalizer specified in the transformation parameters
-         Element parameters = XMLUtils.selectNode(this._transformObject.getElement().getFirstChild(), Constants.WSSE_NS,
+         Element parameters = XMLUtils.selectNode(transformObject.getElement().getFirstChild(), Constants.WSSE_NS,
                "TransformationParameters", 0);
          if (parameters == null)
             throw new TransformationException("wsse:TransformationParameters expected!");

Modified: stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/extensions/security/operation/EncryptionOperation.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/extensions/security/operation/EncryptionOperation.java	2012-03-19 14:24:23 UTC (rev 16000)
+++ stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/extensions/security/operation/EncryptionOperation.java	2012-03-19 15:40:35 UTC (rev 16001)
@@ -76,7 +76,7 @@
 
    private static HashMap<String, Algorithm> algorithms;
 
-   private static final String DEFAULT_ALGORITHM = "aes-128";
+   private static final String DEFAULT_ALGORITHM = "aes-128-gcm";
 
    static
    {
@@ -84,6 +84,9 @@
       algorithms.put("aes-128", new Algorithm("AES", XMLCipher.AES_128, 128));
       algorithms.put("aes-192", new Algorithm("AES", XMLCipher.AES_192, 192));
       algorithms.put("aes-256", new Algorithm("AES", XMLCipher.AES_256, 256));
+      algorithms.put("aes-128-gcm", new Algorithm("AES", XMLCipher.AES_128_GCM, 128));
+      algorithms.put("aes-192-gcm", new Algorithm("AES", XMLCipher.AES_192_GCM, 192));
+      algorithms.put("aes-256-gcm", new Algorithm("AES", XMLCipher.AES_256_GCM, 256));
       algorithms.put("tripledes", new Algorithm("TripleDes", XMLCipher.TRIPLEDES, 168));
    }
 

Modified: stack/native/branches/jbossws-native-3.1.2/pom.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/pom.xml	2012-03-19 14:24:23 UTC (rev 16000)
+++ stack/native/branches/jbossws-native-3.1.2/pom.xml	2012-03-19 15:40:35 UTC (rev 16001)
@@ -73,7 +73,7 @@
     <sun.jaxws.version>2.1.7</sun.jaxws.version>
     <woodstox.version>3.2.9</woodstox.version>
     <wsdl4j.version>1.6.2</wsdl4j.version>
-    <xmlsec.version>1.4.3</xmlsec.version>
+    <xmlsec.version>1.5.1</xmlsec.version>
     <xalan.version>2.7.1.patch02</xalan.version>
     <xerces.version>2.9.1</xerces.version>
   </properties>
@@ -361,7 +361,7 @@
         <version>${xerces.version}</version>
       </dependency>
       <dependency>
-        <groupId>org.apache</groupId>
+        <groupId>org.apache.santuario</groupId>
         <artifactId>xmlsec</artifactId>
         <version>${xmlsec.version}</version>
       </dependency>

Modified: stack/native/branches/jbossws-native-3.1.2/src/main/scripts/assembly-deploy-artifacts.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/src/main/scripts/assembly-deploy-artifacts.xml	2012-03-19 14:24:23 UTC (rev 16000)
+++ stack/native/branches/jbossws-native-3.1.2/src/main/scripts/assembly-deploy-artifacts.xml	2012-03-19 15:40:35 UTC (rev 16001)
@@ -51,7 +51,7 @@
               <include>org.jvnet.staxex:stax-ex:jar</include>
               <include>com.sun.xml.stream.buffer:streambuffer:jar</include>
               <include>wsdl4j:wsdl4j:jar</include>
-              <include>org.apache:xmlsec:jar</include>
+              <include>org.apache.santuario:xmlsec:jar</include>
               <include>org.codehaus.woodstox:wstx:jar</include>
             </includes>
           </dependencySet>



More information about the jbossws-commits mailing list