cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1557698 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JStaxInInterceptor.java
Date Mon, 13 Jan 2014 12:51:46 GMT
Author: coheigea
Date: Mon Jan 13 12:51:46 2014
New Revision: 1557698

URL: http://svn.apache.org/r1557698
Log:
Mark security processed for faults

Modified:
    cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JStaxInInterceptor.java

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JStaxInInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JStaxInInterceptor.java?rev=1557698&r1=1557697&r2=1557698&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JStaxInInterceptor.java
(original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JStaxInInterceptor.java
Mon Jan 13 12:51:46 2014
@@ -62,6 +62,8 @@ import org.apache.xml.security.stax.secu
 
 public class WSS4JStaxInInterceptor extends AbstractWSS4JStaxInterceptor {
     
+    public static final String SECURITY_PROCESSED = WSS4JStaxInInterceptor.class.getName()
+ ".DONE";
+    
     private static final Logger LOG = LogUtils.getL7dLogger(WSS4JStaxInInterceptor.class);
     
     public WSS4JStaxInInterceptor(WSSSecurityProperties securityProperties) {
@@ -90,7 +92,7 @@ public class WSS4JStaxInInterceptor exte
     @Override
     public void handleMessage(SoapMessage soapMessage) throws Fault {
         
-        if (isGET(soapMessage)) {
+        if (soapMessage.containsKey(SECURITY_PROCESSED) || isGET(soapMessage)) {
             return;
         }
 
@@ -143,6 +145,7 @@ public class WSS4JStaxInInterceptor exte
             // interceptor doesn't handle the ws-security stuff but just setup the relevant
stuff
             // for it. Exceptions will be thrown as a wrapped XMLStreamException during further
             // processing in the WS-Stack.
+            soapMessage.put(SECURITY_PROCESSED, Boolean.TRUE);
         } catch (WSSecurityException e) {
             throw createSoapFault(soapMessage.getVersion(), e);
         } catch (XMLSecurityException e) {



Mime
View raw message