You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by ru...@apache.org on 2007/01/26 14:44:57 UTC

svn commit: r500240 - in /webservices/rampart/trunk/java: ./ modules/rampart-core/ modules/rampart-mar/ modules/rampart-policy/ modules/rampart-tests/ modules/rampart-trust-mar/ modules/rampart-trust/

Author: ruchithf
Date: Fri Jan 26 05:44:56 2007
New Revision: 500240

URL: http://svn.apache.org/viewvc?view=rev&rev=500240
Log:
Applying Dimuthu's patch to RAMPART-1

Added:
    webservices/rampart/trunk/java/modules/rampart-mar/
    webservices/rampart/trunk/java/modules/rampart-mar/module.xml
    webservices/rampart/trunk/java/modules/rampart-mar/pom.xml
    webservices/rampart/trunk/java/modules/rampart-trust-mar/
    webservices/rampart/trunk/java/modules/rampart-trust-mar/module.xml
    webservices/rampart/trunk/java/modules/rampart-trust-mar/pom.xml
Modified:
    webservices/rampart/trunk/java/modules/rampart-core/pom.xml
    webservices/rampart/trunk/java/modules/rampart-policy/pom.xml
    webservices/rampart/trunk/java/modules/rampart-tests/pom.xml
    webservices/rampart/trunk/java/modules/rampart-trust/pom.xml
    webservices/rampart/trunk/java/pom.xml

Modified: webservices/rampart/trunk/java/modules/rampart-core/pom.xml
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/java/modules/rampart-core/pom.xml?view=diff&rev=500240&r1=500239&r2=500240
==============================================================================
--- webservices/rampart/trunk/java/modules/rampart-core/pom.xml (original)
+++ webservices/rampart/trunk/java/modules/rampart-core/pom.xml Fri Jan 26 05:44:56 2007
@@ -4,7 +4,7 @@
 
     <parent>
         <groupId>org.apache.rampart</groupId>
-        <artifactId>rampart</artifactId>
+        <artifactId>rampart-project</artifactId>
         <version>SNAPSHOT</version>
     </parent>
 

Added: webservices/rampart/trunk/java/modules/rampart-mar/module.xml
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/java/modules/rampart-mar/module.xml?view=auto&rev=500240
==============================================================================
--- webservices/rampart/trunk/java/modules/rampart-mar/module.xml (added)
+++ webservices/rampart/trunk/java/modules/rampart-mar/module.xml Fri Jan 26 05:44:56 2007
@@ -0,0 +1,29 @@
+<module name="rampart" class="org.apache.rampart.Rampart">
+
+    <Description>This module provides the WS-Security and WS-SecureConversation 
+    functionalities for Axis2, based on Apache WSS4J, Apache XML-Security 
+    and Apache Rahas implementations.
+	</Description>
+	    
+    <InFlow>
+        <handler name="PolicyBasedSecurityInHandler" class="org.apache.rampart.handler.RampartReceiver">
+            <order phase="Security" phaseFirst="true"/>
+        </handler>
+        <handler name="SecurityInHandler" class="org.apache.rampart.handler.WSDoAllReceiver">
+            <order phase="Security"/>
+        </handler>
+    </InFlow>
+
+    <OutFlow>
+        <handler name="SecurityOutHandler" class="org.apache.rampart.handler.WSDoAllSender">
+            <order phase="Security"/>
+        </handler>
+        <handler name="PolicyBasedSecurityOutHandler" class="org.apache.rampart.handler.RampartSender">
+            <order phase="Security" phaseLast="true"/>
+        </handler>
+    </OutFlow>
+    <supported-policy-namespaces namespaces="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"/>
+    <local-policy-assertions>
+    	<rampart:RampartConfig xmlns:rampart="http://ws.apache.org/rampart/policy" />
+    </local-policy-assertions>
+</module>

Added: webservices/rampart/trunk/java/modules/rampart-mar/pom.xml
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/java/modules/rampart-mar/pom.xml?view=auto&rev=500240
==============================================================================
--- webservices/rampart/trunk/java/modules/rampart-mar/pom.xml (added)
+++ webservices/rampart/trunk/java/modules/rampart-mar/pom.xml Fri Jan 26 05:44:56 2007
@@ -0,0 +1,56 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.rampart</groupId>
+    <artifactId>rampart</artifactId>
+    <packaging>mar</packaging>
+    <version>SNAPSHOT</version>
+    <name>Rampart - Mar</name>
+
+    <build>
+        <sourceDirectory>src/main/java</sourceDirectory>
+        <testSourceDirectory>src/main/java</testSourceDirectory>
+        <resources>
+            <resource>
+                <directory>src/main/java</directory>
+            </resource>
+        </resources>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.4</source>
+                    <target>1.4</target>
+                </configuration>
+            </plugin>
+	    <plugin>
+        	<groupId>org.apache.axis2.maven2</groupId>
+        	<artifactId>axis2-mar-maven-plugin</artifactId>
+        	<version>SNAPSHOT</version>
+        	<extensions>true</extensions>
+        	<configuration>
+       	  		<includeDependencies>false</includeDependencies>
+			<moduleXmlFile>module.xml</moduleXmlFile>
+        	</configuration>
+      	     </plugin> 
+           </plugins>
+    </build>
+    
+    <dependencies>
+    	<dependency>
+            <groupId>org.apache.rampart</groupId>
+            <artifactId>rampart-policy</artifactId>
+            <version>${pom.version}</version>
+        </dependency>
+    	<dependency>
+            <groupId>org.apache.rampart</groupId>
+            <artifactId>rampart-trust</artifactId>
+            <version>${pom.version}</version>
+        </dependency>
+    </dependencies>
+
+</project>

Modified: webservices/rampart/trunk/java/modules/rampart-policy/pom.xml
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/java/modules/rampart-policy/pom.xml?view=diff&rev=500240&r1=500239&r2=500240
==============================================================================
--- webservices/rampart/trunk/java/modules/rampart-policy/pom.xml (original)
+++ webservices/rampart/trunk/java/modules/rampart-policy/pom.xml Fri Jan 26 05:44:56 2007
@@ -4,7 +4,7 @@
 
     <parent>
         <groupId>org.apache.rampart</groupId>
-        <artifactId>rampart</artifactId>
+        <artifactId>rampart-project</artifactId>
         <version>SNAPSHOT</version>
     </parent>
 

Modified: webservices/rampart/trunk/java/modules/rampart-tests/pom.xml
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/java/modules/rampart-tests/pom.xml?view=diff&rev=500240&r1=500239&r2=500240
==============================================================================
--- webservices/rampart/trunk/java/modules/rampart-tests/pom.xml (original)
+++ webservices/rampart/trunk/java/modules/rampart-tests/pom.xml Fri Jan 26 05:44:56 2007
@@ -4,7 +4,7 @@
 
     <parent>
         <groupId>org.apache.rampart</groupId>
-        <artifactId>rampart</artifactId>
+        <artifactId>rampart-project</artifactId>
         <version>SNAPSHOT</version>
     </parent>
 

Added: webservices/rampart/trunk/java/modules/rampart-trust-mar/module.xml
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/java/modules/rampart-trust-mar/module.xml?view=auto&rev=500240
==============================================================================
--- webservices/rampart/trunk/java/modules/rampart-trust-mar/module.xml (added)
+++ webservices/rampart/trunk/java/modules/rampart-trust-mar/module.xml Fri Jan 26 05:44:56 2007
@@ -0,0 +1,41 @@
+<module name="rahas">
+    <Description>This module is used to STS enable a service where it adds
+        the RequestSecurityToken operation to a service that the module is engaged to</Description>
+
+    <supported-policy-namespaces namespaces="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"/>
+    
+    <operation name="RequestSecurityToken" mep="http://www.w3.org/2004/08/wsdl/in-out">
+        <messageReceiver class="org.apache.rahas.STSMessageReceiver"/>
+
+		<!-- Action mapping to accept SCT requests -->
+		<actionMapping>http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT</actionMapping>
+
+		<actionMapping>http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue</actionMapping>
+		<actionMapping>http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Renew</actionMapping>
+		<actionMapping>http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Cancel</actionMapping>
+		<actionMapping>http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT/Cancel</actionMapping>
+		<actionMapping>http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Validate</actionMapping>
+
+		<parameter name="token-dispatcher-configuration">
+			<token-dispatcher-configuration>
+                <!-- Issuers. You may have many issuers. -->
+                <issuer class="org.apache.rahas.impl.SCTIssuer" default="true">
+					<configuration type="parameter">sct-issuer-config</configuration>
+					<tokenType>http://schemas.xmlsoap.org/ws/2005/02/sc/sct</tokenType>
+				</issuer>
+				<issuer class="org.apache.rahas.impl.SAMLTokenIssuer">
+					<configuration type="parameter">saml-issuer-config</configuration>
+					<tokenType>http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1</tokenType>
+				</issuer>
+
+                <!-- Only a single canceler is allowed -->
+                <canceler class="org.apache.rahas.impl.TokenCancelerImpl">
+					<configuration type="parameter">token-canceler-config</configuration>
+				</canceler>
+
+            </token-dispatcher-configuration>
+		</parameter>
+
+     </operation>
+
+</module>

Added: webservices/rampart/trunk/java/modules/rampart-trust-mar/pom.xml
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/java/modules/rampart-trust-mar/pom.xml?view=auto&rev=500240
==============================================================================
--- webservices/rampart/trunk/java/modules/rampart-trust-mar/pom.xml (added)
+++ webservices/rampart/trunk/java/modules/rampart-trust-mar/pom.xml Fri Jan 26 05:44:56 2007
@@ -0,0 +1,56 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.rampart</groupId>
+    <artifactId>rampart-sts</artifactId>
+    <packaging>mar</packaging>
+    <version>SNAPSHOT</version>
+    <name>Rampart Trust-Mar</name>
+
+    <build>
+        <sourceDirectory>src/main/java</sourceDirectory>
+        <testSourceDirectory>src/main/java</testSourceDirectory>
+        <resources>
+            <resource>
+                <directory>src/main/java</directory>
+            </resource>
+        </resources>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.4</source>
+                    <target>1.4</target>
+                </configuration>
+            </plugin>
+	    <plugin>
+        	<groupId>org.apache.axis2.maven2</groupId>
+        	<artifactId>axis2-mar-maven-plugin</artifactId>
+        	<version>SNAPSHOT</version>
+        	<extensions>true</extensions>
+        	<configuration>
+       	  		<includeDependencies>false</includeDependencies>
+			<moduleXmlFile>module.xml</moduleXmlFile>
+        	</configuration>
+      	     </plugin> 
+           </plugins>
+    </build>
+    
+    <dependencies>
+    	<dependency>
+            <groupId>org.apache.rampart</groupId>
+            <artifactId>rampart-policy</artifactId>
+            <version>${pom.version}</version>
+        </dependency>
+    	<dependency>
+            <groupId>org.apache.rampart</groupId>
+            <artifactId>rampart-trust</artifactId>
+            <version>${pom.version}</version>
+        </dependency>
+    </dependencies>
+
+</project>

Modified: webservices/rampart/trunk/java/modules/rampart-trust/pom.xml
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/java/modules/rampart-trust/pom.xml?view=diff&rev=500240&r1=500239&r2=500240
==============================================================================
--- webservices/rampart/trunk/java/modules/rampart-trust/pom.xml (original)
+++ webservices/rampart/trunk/java/modules/rampart-trust/pom.xml Fri Jan 26 05:44:56 2007
@@ -4,7 +4,7 @@
 
     <parent>
         <groupId>org.apache.rampart</groupId>
-        <artifactId>rampart</artifactId>
+        <artifactId>rampart-project</artifactId>
         <version>SNAPSHOT</version>
     </parent>
 
@@ -36,7 +36,7 @@
                     <target>1.4</target>
                 </configuration>
             </plugin>
-        </plugins>
+          </plugins>
     </build>
     
     <dependencies>

Modified: webservices/rampart/trunk/java/pom.xml
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/java/pom.xml?view=diff&rev=500240&r1=500239&r2=500240
==============================================================================
--- webservices/rampart/trunk/java/pom.xml (original)
+++ webservices/rampart/trunk/java/pom.xml Fri Jan 26 05:44:56 2007
@@ -4,7 +4,7 @@
 
     <modelVersion>4.0.0</modelVersion>
     <groupId>org.apache.rampart</groupId>
-    <artifactId>rampart</artifactId>
+    <artifactId>rampart-project</artifactId>
     <packaging>pom</packaging>
     <version>SNAPSHOT</version>
     <name>Apache Rampart</name>
@@ -396,7 +396,9 @@
         <module>modules/rampart-policy</module>
         <module>modules/rampart-trust</module>
         <module>modules/rampart-core</module>
-        <module>modules/rampart-tests</module>
+        <module>modules/rampart-tests</module>
+	<module>modules/rampart-mar</module>	
+	<module>modules/rampart-trust-mar</module>	
     </modules>
 
     <properties>