axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi...@apache.org
Subject svn commit: r467400 - in /webservices/axis2/branches/java/1_1: ./ legal/rampart/ legal/security/ modules/samples/security/ modules/samples/security/basic/ modules/samples/security/basic/sample01/ modules/samples/security/basic/sample02/ modules/security/
Date Tue, 24 Oct 2006 17:35:23 GMT
Author: ruchithf
Date: Tue Oct 24 10:35:22 2006
New Revision: 467400

URL: http://svn.apache.org/viewvc?view=rev&rev=467400
Log:
- Ranamed legal/security to legal/rampart
- Added scenario specific README.xt to sample01 and sample02
- Added a build script to the rampart samples directory to be able to setup the jars easily
- Added a goal to maven.xml to create ramprt release artifacts


Added:
    webservices/axis2/branches/java/1_1/legal/rampart/
      - copied from r467300, webservices/axis2/branches/java/1_1/legal/security/
    webservices/axis2/branches/java/1_1/modules/samples/security/basic/sample01/README.txt
    webservices/axis2/branches/java/1_1/modules/samples/security/basic/sample02/README.txt
    webservices/axis2/branches/java/1_1/modules/samples/security/build.xml
Removed:
    webservices/axis2/branches/java/1_1/legal/security/
Modified:
    webservices/axis2/branches/java/1_1/maven.xml
    webservices/axis2/branches/java/1_1/modules/samples/security/README.txt
    webservices/axis2/branches/java/1_1/modules/samples/security/basic/README.txt
    webservices/axis2/branches/java/1_1/modules/security/maven.xml

Modified: webservices/axis2/branches/java/1_1/maven.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/maven.xml?view=diff&rev=467400&r1=467399&r2=467400
==============================================================================
--- webservices/axis2/branches/java/1_1/maven.xml (original)
+++ webservices/axis2/branches/java/1_1/maven.xml Tue Oct 24 10:35:22 2006
@@ -1092,6 +1092,52 @@
         </j:if>
 
     </goal>
+	
+    <!-- ================================================================ -->
+    <!--- Create Apache Rampart Release Artifacts -->
+    <!-- ================================================================ -->
+    <goal name="rampart-release">
+        <ant:echo>+----------------------------------------------</ant:echo>
+        <ant:echo>| Creating: Rampart Release</ant:echo>
+        <ant:echo>+----------------------------------------------</ant:echo>
+
+        <ant:property name="destdir" value="target/rampart/modules"/>
+        <ant:property name="libdir" value="target/rampart/lib"/>
+        <ant:property name="samplesdir" value="target/rampart/samples"/>
+        <ant:mkdir dir="${destdir}"/>
+        <ant:mkdir dir="${libdir}"/>
+        <ant:mkdir dir="${samplesdir}"/>
+
+        <ant:copy toDir="${destdir}">
+            <ant:fileset file="modules/security/target/rampart-${rampart_version}.mar"/>
+            <ant:fileset file="modules/rahas/target/rahas-${rahas_version}.mar"/>
+            <ant:fileset file="modules/rahas/target/rahas-${rahas_version}.aar"/>
+        </ant:copy>
+
+        <ant:copy toDir="${libdir}">
+            <ant:fileset file="modules/security/target/axis2-security-${pom.currentVersion}.jar"/>
+            <ant:fileset file="modules/rahas/target/axis2-rahas-${pom.currentVersion}.jar"/>
+            <ant:fileset file="modules/rahas/target/axis2-secpolicy-${pom.currentVersion}.jar"/>
+        		<ant:fileset file="${maven.repo.local}/wss4j/jars/wss4j-${wss4j.version}.jar"/>
+     		<ant:fileset file="${maven.repo.local}/xml-security/jars/xmlsec-${xmlsec.version}.jar"/>
+     		<ant:fileset file="${maven.repo.local}/opensaml/jars/opensaml-${opensaml.version}.jar"/>
+     		<ant:fileset file="${maven.repo.local}/bouncycastle/jars/bcprov-${bcprov.version}.jar"/>
+     		<ant:fileset file="${maven.repo.local}/commons-codec/jars/commons-codec-${commons.codec.version}.jar"/>
+        
+        		<!--copy license files -->
+            <ant:copy toDir="${libdir}">
+                <ant:fileset dir="legal/rampart">
+                    <ant:include name="*.txt"/>
+                </ant:fileset>
+            </ant:copy>
+     		<ant:fileset file="legal/min/axis2-LICENSE.txt"/>
+
+        </ant:copy>
+    	
+        <ant:copy toDir="${samplesdir}">
+            <ant:fileset dir="modules/samples/security/"/>
+        </ant:copy>
+    </goal>
 
     <define:taglib uri="macros">
         <define:tag name="copy-deps">

Modified: webservices/axis2/branches/java/1_1/modules/samples/security/README.txt
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/security/README.txt?view=diff&rev=467400&r1=467399&r2=467400
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/security/README.txt (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/security/README.txt Tue Oct 24 10:35:22
2006
@@ -1,26 +1,19 @@
-Rampart Samples
+********************************************************************************
+**************************** Apache Rampart Samples ****************************
+********************************************************************************
 
 This directory contains three sub directories:
-basic - A set of samples that uses basic rampart configuration using parameters
-policy - A set of samples that uses rampart with WS-SecurityPolicy
-rahas - A set of samples demonstrating WS-Trust features provided by Rahas
 
-IMPORTANT: Before you try any of the samples makesure you
-
-1.) Set the AXIS2_HOME envirenment variable
-2.) Copy the following jars into the AXIS2_HOME/lib directory.
+    - basic - A set of samples that uses basic rampart configuration using 
+    	          parameters
 
-secpolicy.jar
+    - policy - A set of samples that uses rampart with WS-SecurityPolicy
 
-Scenario 4:
-wss4j.jar
-xml-sec-1.3.0.jar
-opensaml-1.1.jar
-bcprov-jdk13-133.jar
-
-Scenario 11:
-axis2-security-1.1-SNAPSHOT.jar
-axis2-rahas-1.1-SNAPSHOT.jar
+    - rahas - A set of samples demonstrating WS-Trust features provided by Rahas
 
-JDK 1.5 : xalan.jar
+IMPORTANT: Before you try any of the samples makesure you
 
+1.) Have the Axis2 standard binary distribution downloaded and extracted. 
+2.) Set the AXIS2_HOME envirenment variable
+3.) Run ant from the "samples" directory to copy the required libraries and 
+    modules to relevant directories in AXIS2_HOME.

Modified: webservices/axis2/branches/java/1_1/modules/samples/security/basic/README.txt
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/security/basic/README.txt?view=diff&rev=467400&r1=467399&r2=467400
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/security/basic/README.txt (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/security/basic/README.txt Tue Oct
24 10:35:22 2006
@@ -1,10 +1,16 @@
+********************************************************************************
+**************************** Apache Rampart Samples ****************************
+********************************************************************************
+
 This is a set of Apache Rampart samples which uses configuraiton parameters 
 to configure rampart.
 
-Each "sample" directory contains :
+Each "sampleX" directory contains :
 
     - client.axis2.xml - Client configuration
     - services.xml - Service configuration
+    - src - Source of the sample
+    - README.txt - you have to read this :-)
 
 We use two parameters named "InflowSecurity" and "OutflowSecurity" within
 these files to configure rampart.
@@ -20,3 +26,10 @@
 09.) Encryption with a key known to both parties
 10.) MTOM Optimizing base64 content in the secured message
 11.) Dynamic configuration : Get rid of the config files ... let's use code!
+
+--------------------------------------------------------------------------------
+NOTE: To view the messages exchanged
+    - Change the "client.port" property in the "build.xml" to an available port
+    	  E.g. : <property name="client.port" value="9080"/>
+    	- Setup tcpmon (http://ws.apache.org/commons/tcpmon/) to listen on the above
+    	  port and to point to port 8080 (value of the service.port property)
\ No newline at end of file

Added: webservices/axis2/branches/java/1_1/modules/samples/security/basic/sample01/README.txt
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/security/basic/sample01/README.txt?view=auto&rev=467400
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/security/basic/sample01/README.txt
(added)
+++ webservices/axis2/branches/java/1_1/modules/samples/security/basic/sample01/README.txt
Tue Oct 24 10:35:22 2006
@@ -0,0 +1,6 @@
+Rampart Engaged and no configuration
+
+This sample shows that Apache Rampart does not work on the messages when simply
+engagd without any configuration
+
+Note: <module ref="rampart"/> in both client.axis2.xml and services.xml
\ No newline at end of file

Added: webservices/axis2/branches/java/1_1/modules/samples/security/basic/sample02/README.txt
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/security/basic/sample02/README.txt?view=auto&rev=467400
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/security/basic/sample02/README.txt
(added)
+++ webservices/axis2/branches/java/1_1/modules/samples/security/basic/sample02/README.txt
Tue Oct 24 10:35:22 2006
@@ -0,0 +1,7 @@
+UsernameToken authentication
+
+The client is configured to add a UsernameToken to the outgoing message.
+	- See the "OutflowSecurity" parameter in the client.axis2.xml
+The service is configured to process it.
+	- See the "InflowSecurity" parameter in the services.xml
+

Added: webservices/axis2/branches/java/1_1/modules/samples/security/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/security/build.xml?view=auto&rev=467400
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/security/build.xml (added)
+++ webservices/axis2/branches/java/1_1/modules/samples/security/build.xml Tue Oct 24 10:35:22
2006
@@ -0,0 +1,32 @@
+<project basedir="." default="setup">
+
+	<property name="lib.dir" value="../lib"/>
+	<property name="modules.dir" value="../modules"/>
+	
+	<property environment="env"/>
+    	
+	<target name="check.dependency" unless="env.AXIS2_HOME">
+        <echo message="AXIS2_HOME must be set"/>
+    </target>
+
+	<!-- Copy the required jars and mars appropriately -->
+	<target name="setup" if="env.AXIS2_HOME" depends="check.dependency">
+		
+   		<property name="axis2.modules.dir" value="${env.AXIS2_HOME}/repository/modules/"/>
+   		<property name="axis2.lib.dir" value="${env.AXIS2_HOME}/lib"/>
+		
+		<copy todir="${axis2.lib.dir}">
+	        <fileset dir="${lib.dir}">
+	                <include name="**/*.jar"/>
+	        </fileset>
+		</copy>
+		
+		<copy todir="${axis2.modules.dir}">
+	        <fileset dir="${modules.dir}">
+	                <include name="**/*.mar"/>
+	        </fileset>
+		</copy>
+				
+	</target>
+	
+</project>
\ No newline at end of file

Modified: webservices/axis2/branches/java/1_1/modules/security/maven.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/security/maven.xml?view=diff&rev=467400&r1=467399&r2=467400
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/security/maven.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/security/maven.xml Tue Oct 24 10:35:22 2006
@@ -34,7 +34,7 @@
 
         <!--include the license for jars-->
         <ant:copy toDir="target/temp-mar/lib">
-            <ant:fileset dir="../../legal/security">
+            <ant:fileset dir="../../legal/rampart">
                 <ant:include name="*.txt"/>
             </ant:fileset>
         </ant:copy>



---------------------------------------------------------------------
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