axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi...@apache.org
Subject svn commit: r395164 - in /webservices/axis2/trunk/java/modules: integration/test-resources/security/rahas/s1-services.xml integration/test/org/apache/axis2/security/rahas/RahasScenario1Test.java security/src/org/apache/axis2/security/util/Axis2Util.java
Date Wed, 19 Apr 2006 08:09:57 GMT
Author: ruchithf
Date: Wed Apr 19 01:09:55 2006
New Revision: 395164

URL: http://svn.apache.org/viewcvs?rev=395164&view=rev
Log:
Updated the configuration of RahasScenario1 to makesure the issued token is signed and encrypted.

Modified:
    webservices/axis2/trunk/java/modules/integration/test-resources/security/rahas/s1-services.xml
    webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/security/rahas/RahasScenario1Test.java
    webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/util/Axis2Util.java

Modified: webservices/axis2/trunk/java/modules/integration/test-resources/security/rahas/s1-services.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test-resources/security/rahas/s1-services.xml?rev=395164&r1=395163&r2=395164&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test-resources/security/rahas/s1-services.xml
(original)
+++ webservices/axis2/trunk/java/modules/integration/test-resources/security/rahas/s1-services.xml
Wed Apr 19 01:09:55 2006
@@ -34,7 +34,11 @@
 
     <parameter name="OutflowSecurity">
       <action>
-        <items>Timestamp</items>
+        <items>Timestamp Signature Encrypt</items>
+        <encryptionUser>useReqSigCert</encryptionUser>
+        <user>sts</user>
+        <signaturePropFile xmlns="">sctIssuer.properties</signaturePropFile>
+	<passwordCallbackClass xmlns="">org.apache.axis2.security.rahas.PWCallback</passwordCallbackClass>
       </action>
     </parameter>
     

Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/security/rahas/RahasScenario1Test.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/security/rahas/RahasScenario1Test.java?rev=395164&r1=395163&r2=395164&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/security/rahas/RahasScenario1Test.java
(original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/security/rahas/RahasScenario1Test.java
Wed Apr 19 01:09:55 2006
@@ -57,8 +57,10 @@
     public InflowConfiguration getClientInflowConfiguration() {
         InflowConfiguration ifc = new InflowConfiguration();
 
-        ifc.setActionItems("Timestamp");
-
+        ifc.setActionItems("Timestamp Signature Encrypt");
+        ifc.setPasswordCallbackClass(PWCallback.class.getName());
+        ifc.setSignaturePropFile("sec.properties");
+        
         return ifc;
     }
 

Modified: webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/util/Axis2Util.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/util/Axis2Util.java?rev=395164&r1=395163&r2=395164&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/util/Axis2Util.java
(original)
+++ webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/util/Axis2Util.java
Wed Apr 19 01:09:55 2006
@@ -19,6 +19,7 @@
 import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMFactory;
+import org.apache.axiom.om.OMNode;
 import org.apache.axiom.om.impl.builder.StAXOMBuilder;
 import org.apache.axiom.om.impl.dom.DOOMAbstractFactory;
 import org.apache.axiom.om.impl.dom.factory.OMDOMFactory;
@@ -102,7 +103,7 @@
     			
     			StAXSOAPModelBuilder stAXSOAPModelBuilder = new StAXSOAPModelBuilder(env.getXMLStreamReader(),factory,
nsURI);
     			SOAPEnvelope envelope = (stAXSOAPModelBuilder).getSOAPEnvelope();
-    			envelope.build();
+    			((OMNode)envelope.getParent()).build();
     			
     			Element envElem = (Element)envelope;
     			return envElem.getOwnerDocument();



Mime
View raw message