axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi...@apache.org
Subject svn commit: r451856 - in /webservices/axis2/trunk/java/modules: rahas/src/org/apache/rahas/impl/AbstractIssuerConfig.java security/src/org/apache/rampart/RampartMessageData.java security/test/org/apache/rampart/MessageBuilderTestBase.java
Date Mon, 02 Oct 2006 02:42:10 GMT
Author: ruchithf
Date: Sun Oct  1 19:42:09 2006
New Revision: 451856

URL: http://svn.apache.org/viewvc?view=rev&rev=451856
Log:
Make sure we save policy in the svcCtx at the client side

Modified:
    webservices/axis2/trunk/java/modules/rahas/src/org/apache/rahas/impl/AbstractIssuerConfig.java
    webservices/axis2/trunk/java/modules/security/src/org/apache/rampart/RampartMessageData.java
    webservices/axis2/trunk/java/modules/security/test/org/apache/rampart/MessageBuilderTestBase.java

Modified: webservices/axis2/trunk/java/modules/rahas/src/org/apache/rahas/impl/AbstractIssuerConfig.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rahas/src/org/apache/rahas/impl/AbstractIssuerConfig.java?view=diff&rev=451856&r1=451855&r2=451856
==============================================================================
--- webservices/axis2/trunk/java/modules/rahas/src/org/apache/rahas/impl/AbstractIssuerConfig.java
(original)
+++ webservices/axis2/trunk/java/modules/rahas/src/org/apache/rahas/impl/AbstractIssuerConfig.java
Sun Oct  1 19:42:09 2006
@@ -52,6 +52,6 @@
     protected long ttl = 300000;
     protected String cryptoPropertiesFile;
     protected OMElement cryptoPropertiesElement;
-    protected int keySize = 128;
+    protected int keySize = 256;
 
 }

Modified: webservices/axis2/trunk/java/modules/security/src/org/apache/rampart/RampartMessageData.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/security/src/org/apache/rampart/RampartMessageData.java?view=diff&rev=451856&r1=451855&r2=451856
==============================================================================
--- webservices/axis2/trunk/java/modules/security/src/org/apache/rampart/RampartMessageData.java
(original)
+++ webservices/axis2/trunk/java/modules/security/src/org/apache/rampart/RampartMessageData.java
Sun Oct  1 19:42:09 2006
@@ -186,6 +186,10 @@
                 
             }
             
+            if(!msgCtx.isServerSide() && this.servicePolicy != null) {
+                msgCtx.getServiceContext().setProperty(RampartMessageData.KEY_RAMPART_POLICY,
this.servicePolicy);
+            }
+            
             if(this.servicePolicy != null){
                 List it = (List)this.servicePolicy.getAlternatives().next();
 

Modified: webservices/axis2/trunk/java/modules/security/test/org/apache/rampart/MessageBuilderTestBase.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/security/test/org/apache/rampart/MessageBuilderTestBase.java?view=diff&rev=451856&r1=451855&r2=451856
==============================================================================
--- webservices/axis2/trunk/java/modules/security/test/org/apache/rampart/MessageBuilderTestBase.java
(original)
+++ webservices/axis2/trunk/java/modules/security/test/org/apache/rampart/MessageBuilderTestBase.java
Sun Oct  1 19:42:09 2006
@@ -23,6 +23,8 @@
 import org.apache.axis2.AxisFault;
 import org.apache.axis2.client.Options;
 import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.context.ServiceContext;
+import org.apache.axis2.context.ServiceGroupContext;
 import org.apache.axis2.description.AxisService;
 import org.apache.axis2.description.OutInAxisOperation;
 import org.apache.neethi.Policy;
@@ -57,7 +59,9 @@
      */
     protected MessageContext getMsgCtx() throws Exception {
         MessageContext ctx = new MessageContext();
-        ctx.setAxisService(new AxisService("TestService"));
+        AxisService axisService = new AxisService("TestService");
+        ctx.setServiceContext(new ServiceContext(axisService, new ServiceGroupContext(null,
null)));
+        ctx.setAxisService(axisService);
         ctx.setAxisOperation(new OutInAxisOperation(new QName("http://rampart.org", "test")));
         Options options = new Options();
         options.setAction("urn:testOperation");



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message