ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r382281 - /webservices/axis2/trunk/java/modules/security/src/org/apache/ws/security/policy/parser/WSSPolicyProcessor.java
Date Thu, 02 Mar 2006 03:44:44 GMT
Author: sanka
Date: Wed Mar  1 19:44:42 2006
New Revision: 382281

URL: http://svn.apache.org/viewcvs?rev=382281&view=rev
Log:
before processing a policy we should check whether it is in normalized format. If not we should
normalize it before processing it

Modified:
    webservices/axis2/trunk/java/modules/security/src/org/apache/ws/security/policy/parser/WSSPolicyProcessor.java

Modified: webservices/axis2/trunk/java/modules/security/src/org/apache/ws/security/policy/parser/WSSPolicyProcessor.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/security/src/org/apache/ws/security/policy/parser/WSSPolicyProcessor.java?rev=382281&r1=382280&r2=382281&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/security/src/org/apache/ws/security/policy/parser/WSSPolicyProcessor.java
(original)
+++ webservices/axis2/trunk/java/modules/security/src/org/apache/ws/security/policy/parser/WSSPolicyProcessor.java
Wed Mar  1 19:44:42 2006
@@ -171,6 +171,7 @@
                 e.printStackTrace();
             }
         }
+      
         if (processPolicy(merged)) {
             log.debug("Security Policy sucessfully parsed");
         } else {
@@ -197,7 +198,7 @@
     public boolean processPolicy(Policy policy) {
 
         if (!policy.isNormalized()) {
-            throw new RuntimeException("Policy is not in normalized format");
+        	policy = (Policy) policy.normalize();
         }
 
         XorCompositeAssertion xor = (XorCompositeAssertion) policy.getTerms()



Mime
View raw message