cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1156088 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java
Date Wed, 10 Aug 2011 10:14:46 GMT
Author: coheigea
Date: Wed Aug 10 10:14:46 2011
New Revision: 1156088

URL: http://svn.apache.org/viewvc?rev=1156088&view=rev
Log:
Always set the Message Level Principal on the WebServiceContext
 - The Message Level Principal should override any previous principal

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

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java?rev=1156088&r1=1156087&r2=1156088&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java
(original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JInInterceptor.java
Wed Aug 10 10:14:46 2011
@@ -407,11 +407,7 @@ public class WSS4JInInterceptor extends 
                 if (!utWithCallbacks) {
                     WSS4JTokenConverter.convertToken(msg, p);
                 }
-                SecurityContext sc = msg.get(SecurityContext.class);
-                if (sc == null || sc.getUserPrincipal() == null) {
-                    msg.put(SecurityContext.class, createSecurityContext(p));
-                    break;
-                }
+                msg.put(SecurityContext.class, createSecurityContext(p));
             }            
         }
     }



Mime
View raw message