Author: fadushin
Date: Tue May 27 07:54:37 2008
New Revision: 660545

URL: http://svn.apache.org/viewvc?rev=660545&view=rev
Log:
Merged latest 1.5.4 branch changes to 1.5.4 tag, in preparation for release.


Added:
    webservices/wss4j/tags/1_5_4/ChangeLog.txt
      - copied unchanged from r659919, 
webservices/wss4j/branches/1_5_4/ChangeLog.txt
    webservices/wss4j/tags/1_5_4/test/wssec/TestWSSecurityNew16.java
      - copied unchanged from r659919, 
webservices/wss4j/branches/1_5_4/test/wssec/TestWSSecurityNew16.java
Modified:
    webservices/wss4j/tags/1_5_4/README.txt
    webservices/wss4j/tags/1_5_4/pom.xml
    
webservices/wss4j/tags/1_5_4/src/org/apache/ws/security/message/WSSecEncrypt.java
    
webservices/wss4j/tags/1_5_4/src/org/apache/ws/security/message/WSSecEncryptedKey.java
    
webservices/wss4j/tags/1_5_4/src/org/apache/ws/security/processor/SignatureProcessor.java
    webservices/wss4j/tags/1_5_4/test/wssec/PackageTests.java
    webservices/wss4j/tags/1_5_4/wss4j-readme.html
    webservices/wss4j/tags/1_5_4/xdocs/index.xml

Modified: webservices/wss4j/tags/1_5_4/README.txt
URL: 
http://svn.apache.org/viewvc/webservices/wss4j/tags/1_5_4/README.txt?rev=660545&r1=660544&r2=660545&view=diff
==============================================================================
--- webservices/wss4j/tags/1_5_4/README.txt (original)
+++ webservices/wss4j/tags/1_5_4/README.txt Tue May 27 07:54:37 2008
@@ -87,7 +87,7 @@
 are accessed either as resources via classpath or, if that fails, as files
 using the relative path of the application
 
-Thus no specific installation is required. The wss4j-1.5.1.jar file could be 
+Thus no specific installation is required. The wss4j jar file could be 
 included into ear or war files of enterprise or web application servers.
 
 Please refer to the JAVADOC files of the distribution for further 

Modified: webservices/wss4j/tags/1_5_4/pom.xml
URL: 
http://svn.apache.org/viewvc/webservices/wss4j/tags/1_5_4/pom.xml?rev=660545&r1=660544&r2=660545&view=diff
==============================================================================
--- webservices/wss4j/tags/1_5_4/pom.xml (original)
+++ webservices/wss4j/tags/1_5_4/pom.xml Tue May 27 07:54:37 2008
@@ -17,7 +17,7 @@
     <url>http://ws.apache.org/wss4j/</url>
     <issueManagement>
         <system>JIRA</system>
-        <url>http://issues.apache.org/jira/browse/WSS4J</url>
+        <url>http://issues.apache.org/jira/browse/WSS</url>
     </issueManagement>
     <ciManagement>
         <system>Continuum</system>
@@ -83,6 +83,14 @@
             <organization></organization>
         </developer>
   </developers>
+    
+    <contributors>
+        <contributor>
+            <name>Colm O hEigeartaigh</name>
+        </contributor>
+        <!-- ask permission to list others -->
+    </contributors>
+  
     <licenses>
         <license>
             <name>The Apache Software License, Version 2.0</name>
@@ -436,6 +444,18 @@
             </plugin-->
             <plugin>
                 <artifactId>maven-project-info-reports-plugin</artifactId>
+                <reportSets>
+                    <reportSet>
+                        <reports>
+                            <report>dependencies</report>
+                            <report>project-team</report>
+                            <report>mailing-list</report>
+                            <report>issue-tracking</report>
+                            <report>license</report>
+                            <report>scm</report>
+                        </reports>
+                    </reportSet>
+                </reportSets>
             </plugin>
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
@@ -447,6 +467,23 @@
               <artifactId>jxr-maven-plugin</artifactId>
               <version>2.0-beta-2-SNAPSHOT</version>
             </plugin-->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-changes-plugin</artifactId>
+                <configuration>
+                    <onlyCurrentVersion>true</onlyCurrentVersion>
+                    <resolutionIds>Any</resolutionIds>
+                    <statusIds>Resolved, Closed</statusIds>
+                    <sortColumnNames>Key</sortColumnNames>
+                </configuration>
+                <reportSets>
+                    <reportSet>
+                        <reports>
+                            <report>jira-report</report>
+                        </reports>
+                    </reportSet>
+                </reportSets>
+            </plugin>
         </plugins>
     </reporting>
     <distributionManagement>

Modified: 
webservices/wss4j/tags/1_5_4/src/org/apache/ws/security/message/WSSecEncrypt.java
URL: 
http://svn.apache.org/viewvc/webservices/wss4j/tags/1_5_4/src/org/apache/ws/security/message/WSSecEncrypt.java?rev=660545&r1=660544&r2=660545&view=diff
==============================================================================
--- 
webservices/wss4j/tags/1_5_4/src/org/apache/ws/security/message/WSSecEncrypt.java
 (original)
+++ 
webservices/wss4j/tags/1_5_4/src/org/apache/ws/security/message/WSSecEncrypt.java
 Tue May 27 07:54:37 2008
@@ -296,6 +296,10 @@
         }
 
         prepare(doc, crypto);
+        
+        if (envelope == null) {
+            envelope = document.getDocumentElement();
+        }
 
         SOAPConstants soapConstants = 
WSSecurityUtil.getSOAPConstants(envelope);
         if (parts == null) {

Modified: 
webservices/wss4j/tags/1_5_4/src/org/apache/ws/security/message/WSSecEncryptedKey.java
URL: 
http://svn.apache.org/viewvc/webservices/wss4j/tags/1_5_4/src/org/apache/ws/security/message/WSSecEncryptedKey.java?rev=660545&r1=660544&r2=660545&view=diff
==============================================================================
--- 
webservices/wss4j/tags/1_5_4/src/org/apache/ws/security/message/WSSecEncryptedKey.java
 (original)
+++ 
webservices/wss4j/tags/1_5_4/src/org/apache/ws/security/message/WSSecEncryptedKey.java
 Tue May 27 07:54:37 2008
@@ -451,6 +451,14 @@
     }
     
     /**
+     * Set the encrypted key element when a pre prepared encrypted key is used
+     * @param encryptedKeyElement EncryptedKey element of the encrypted key 
used
+     */
+    public void setEncryptedKeyElement(Element encryptedKeyElement) {
+        this.encryptedKeyElement = encryptedKeyElement;
+    }
+    
+    /**
      * @return Returns the BinarySecurityToken element.
      */
     public Element getBinarySecurityTokenElement() {

Modified: 
webservices/wss4j/tags/1_5_4/src/org/apache/ws/security/processor/SignatureProcessor.java
URL: 
http://svn.apache.org/viewvc/webservices/wss4j/tags/1_5_4/src/org/apache/ws/security/processor/SignatureProcessor.java?rev=660545&r1=660544&r2=660545&view=diff
==============================================================================
--- 
webservices/wss4j/tags/1_5_4/src/org/apache/ws/security/processor/SignatureProcessor.java
 (original)
+++ 
webservices/wss4j/tags/1_5_4/src/org/apache/ws/security/processor/SignatureProcessor.java
 Tue May 27 07:54:37 2008
@@ -236,8 +236,18 @@
                         secretKey = samlKi.getSecret();
 
                     } else if (el.equals(WSSecurityEngine.ENCRYPTED_KEY)){
-                        EncryptedKeyProcessor encryptKeyProcessor = new 
EncryptedKeyProcessor();
-                        encryptKeyProcessor.handleEncryptedKey((Element)token, 
cb, crypto);
+                        
+                        String encryptedKeyID = 
token.getAttributeNS(null,"Id");                   
+                        EncryptedKeyProcessor encryptKeyProcessor = 
(EncryptedKeyProcessor)
+                                wsDocInfo.getProcessor(encryptedKeyID);
+                        
+                        if (encryptKeyProcessor == null ) {
+                        
+                            encryptKeyProcessor = new EncryptedKeyProcessor();
+                            
encryptKeyProcessor.handleEncryptedKey((Element)token, cb, crypto);
+                        
+                        } 
+                        
                         secretKey = encryptKeyProcessor.getDecryptedBytes();
                      
                     }else {

Modified: webservices/wss4j/tags/1_5_4/test/wssec/PackageTests.java
URL: 
http://svn.apache.org/viewvc/webservices/wss4j/tags/1_5_4/test/wssec/PackageTests.java?rev=660545&r1=660544&r2=660545&view=diff
==============================================================================
--- webservices/wss4j/tags/1_5_4/test/wssec/PackageTests.java (original)
+++ webservices/wss4j/tags/1_5_4/test/wssec/PackageTests.java Tue May 27 
07:54:37 2008
@@ -63,6 +63,7 @@
         suite.addTestSuite(TestWSSecurityNew12.class);
         suite.addTestSuite(TestWSSecurityNew13.class);
         suite.addTestSuite(TestWSSecurityNew14.class);
+        suite.addTestSuite(TestWSSecurityNew16.class);
         suite.addTestSuite(TestWSSecurityNewSOAP12.class);
         // suite.addTestSuite(TestWSSecurityHooks.class);
         suite.addTestSuite(TestWSSecurityNewST1.class);

Modified: webservices/wss4j/tags/1_5_4/wss4j-readme.html
URL: 
http://svn.apache.org/viewvc/webservices/wss4j/tags/1_5_4/wss4j-readme.html?rev=660545&r1=660544&r2=660545&view=diff
==============================================================================
--- webservices/wss4j/tags/1_5_4/wss4j-readme.html (original)
+++ webservices/wss4j/tags/1_5_4/wss4j-readme.html Tue May 27 07:54:37 2008
@@ -2,7 +2,7 @@
 <HTML>
 <HEAD>
        <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
-       <TITLE>Apache WSS4J-1.5.2</TITLE>
+       <TITLE>Apache WSS4J</TITLE>
        <META NAME="GENERATOR" CONTENT="OpenOffice.org 1.9.79  (Linux)">
        <META NAME="AUTHOR" CONTENT="Werner Dittmann">
        <META NAME="CREATED" CONTENT="20050904;11070500">
@@ -106,7 +106,7 @@
 the relative path of the application 
 </P>
 <P STYLE="margin-bottom: 0cm">Thus no specific installation is
-required. The wss4j-1.5.2.jar file should be included into ear or war files
+required. The wss4j jar file should be included into ear or war files
 of enterprise or web application servers.</P>
 <P STYLE="margin-bottom: 0cm">Please refer to the JAVADOC files of
 the distribution for further information how to use WSS4J, the

Modified: webservices/wss4j/tags/1_5_4/xdocs/index.xml
URL: 
http://svn.apache.org/viewvc/webservices/wss4j/tags/1_5_4/xdocs/index.xml?rev=660545&r1=660544&r2=660545&view=diff
==============================================================================
--- webservices/wss4j/tags/1_5_4/xdocs/index.xml (original)
+++ webservices/wss4j/tags/1_5_4/xdocs/index.xml Tue May 27 07:54:37 2008
@@ -58,7 +58,7 @@
                 </ul>
             </subsection>
             <subsection name="Where can I download WSS4J">
-                <p style="margin-left: 40px;">Latest version of WSS4J is 
1.5.2:<br/>
+                <p style="margin-left: 40px;">You can download the latest 
version of WSS4J at the following URL:<br/>
                     <a 
href="http://www.apache.org/dyn/closer.cgi/ws/wss4j/";>http://www.apache.org/dyn/closer.cgi/ws/wss4j/</a>
                 </p>
             </subsection>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to