ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1750972 - /webservices/wss4j/branches/2_0_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/handler/WSHandler.java
Date Fri, 01 Jul 2016 16:00:58 GMT
Author: coheigea
Date: Fri Jul  1 16:00:58 2016
New Revision: 1750972

URL: http://svn.apache.org/viewvc?rev=1750972&view=rev
Log:
WSS-582 - Don't cache Crypto key references in WSHandler

Modified:
    webservices/wss4j/branches/2_0_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/handler/WSHandler.java

Modified: webservices/wss4j/branches/2_0_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/handler/WSHandler.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/2_0_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/handler/WSHandler.java?rev=1750972&r1=1750971&r2=1750972&view=diff
==============================================================================
--- webservices/wss4j/branches/2_0_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/handler/WSHandler.java
(original)
+++ webservices/wss4j/branches/2_0_x-fixes/ws-security-dom/src/main/java/org/apache/wss4j/dom/handler/WSHandler.java
Fri Jul  1 16:00:58 2016
@@ -1074,8 +1074,8 @@ public abstract class WSHandler {
                                                        getPasswordEncryptor(requestData));
                     cryptos.put(refId, crypto);
                 } else if (obj instanceof Crypto) {
+                    // No need to cache this as it's already loaded
                     crypto = (Crypto)obj;
-                    cryptos.put(refId, crypto);
                 }
             }
             if (crypto == null) {



Mime
View raw message