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 na...@apache.org on 2008/06/26 07:19:24 UTC

svn commit: r671759 - /webservices/rampart/site/java/quick-start.html

Author: nandana
Date: Wed Jun 25 22:19:24 2008
New Revision: 671759

URL: http://svn.apache.org/viewvc?rev=671759&view=rev
Log:
Giving Rampart site a new look :)

Modified:
    webservices/rampart/site/java/quick-start.html

Modified: webservices/rampart/site/java/quick-start.html
URL: http://svn.apache.org/viewvc/webservices/rampart/site/java/quick-start.html?rev=671759&r1=671758&r2=671759&view=diff
==============================================================================
--- webservices/rampart/site/java/quick-start.html (original)
+++ webservices/rampart/site/java/quick-start.html Wed Jun 25 22:19:24 2008
@@ -22,12 +22,17 @@
       </head>
   <body class="composite">
     <div id="banner">
-                  <a href="ws.apache.org/rampart/" id="bannerLeft">
+                  <a href="images/apache-rampart-logo.jpg" id="bannerLeft">
     
             Apache Rampart
     
             </a>
-                    <div class="clear">
+                        <a href="http://www.apache.org" id="bannerRight">
+    
+                                            <img src="images/apache-rampart-banner.jpg" alt="" />
+    
+            </a>
+            <div class="clear">
         <hr/>
       </div>
     </div>
@@ -40,13 +45,11 @@
   
   
             <div class="xleft">
-        Last Published: 03 Mar 2008
+        Last Published: 23 Jun 2008
                       </div>
-            <div class="xright">      <a href="http://www.apache.org/">Apache</a>
+            <div class="xright">      <a href="../../">WebServices</a>
           |
-          <a href="../../">WebServices</a>
-          |
-          <a href="../../">WebServices</a>
+          <a href="http://ws.apache.org/axis2">Axis2/Java</a>
           
   
 
@@ -72,7 +75,7 @@
         <ul>
               
     <li class="none">
-              <a href="index.html">About</a>
+              <a href="index.html">Home</a>
         </li>
               
           
@@ -102,13 +105,29 @@
       
             
       
+            
+      
+            
+      
+            
+      
+            
+      
               
             <li class="expanded">
               <a href="">Documentation</a>
                 <ul>
                   
     <li class="none">
-              <strong>Quick Start Guide</strong>
+              <strong>Getting Started</strong>
+        </li>
+                  
+    <li class="none">
+              <a href="samples.html">Samples</a>
+        </li>
+                  
+    <li class="none">
+              <a href="http://wiki.apache.org/ws/FrontPage/Rampart/FAQ">FAQ</a>
         </li>
                   
     <li class="none">
@@ -116,8 +135,16 @@
         </li>
                   
     <li class="none">
+              <a href="setting-up-sts.html">STS Configuration</a>
+        </li>
+                  
+    <li class="none">
               <a href="developer-guide.html">Developer Guide</a>
         </li>
+                  
+    <li class="none">
+              <a href="siteHowTo.html">Build the Site</a>
+        </li>
               </ul>
         </li>
               
@@ -130,11 +157,43 @@
       
               
         <li class="expanded">
+              <a href="">Resources</a>
+                <ul>
+                  
+    <li class="none">
+              <a href="articles.html">Articles</a>
+        </li>
+                  
+    <li class="none">
+              <a href="specifications.html">Specifications</a>
+        </li>
+                  
+    <li class="none">
+              <a href="apidocs/index.html">Online Javadocs</a>
+        </li>
+              </ul>
+        </li>
+              
+          
+              
+      
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+              
+        <li class="expanded">
               <a href="">Project Information</a>
                 <ul>
                   
     <li class="none">
-              <a href="mail-lists.html">Mailing Lists</a>
+              <a href="team-list.html">Project Team</a>
         </li>
                   
     <li class="none">
@@ -142,8 +201,20 @@
         </li>
                   
     <li class="none">
+              <a href="mail-lists.html">Mailing Lists</a>
+        </li>
+                  
+    <li class="none">
+              <a href="http://svn.apache.org/viewcvs.cgi/webservices/rampart/trunk/?root=Apache-SVN">Source Code</a>
+        </li>
+                  
+    <li class="none">
               <a href="dependencies.html">Dependencies</a>
         </li>
+                  
+    <li class="none">
+              <a href="http://www.apache.org/licenses/LICENSE-2.0.html">License</a>
+        </li>
               </ul>
         </li>
           </ul>
@@ -163,94 +234,35 @@
       <div id="contentBox">
         <html xmlns="http://www.w3.org/1999/xhtml">
 	<head>
-		Apache Rampart - Source Repository
 	</head>
 	
-		<h2>Rampart Quick Start Guide</h2>
+		<h1>Rampart Quick Start Guide</h1>
 
-		<h3>Installing Rampart in Axis2</h3>
+		<h3>Installing Rampart module in Axis2</h3>
 		<p>Steps to install</p>
 		<ol type="1">
 			<li>If you haven't installed Axis2, then download and extract the standard binary distribution. Make sure you have set the AXIS2_HOME environment variable</li>
 			<li>Run ant from the &quot;samples&quot; directory to copy the required libraries and modules to relevant directories in AXIS2_HOME.</li>
-			<li>Download xalan-2.7.0.jar from <a href="http://www.apache.org/dist/java-repository/xalan/jars/">here</a> and put under AXIS2_HOME\lib folder, if you use JDK 1.5.</li>
-			<li>Download log4j.jar from <a href="http://people.apache.org/repo/m1-ibiblio-rsync-repository/log4j/jars/">here</a> and put under  AXIS2_HOME\lib</li>
 		</ol>
 		
-		<h3>Running Samples</h3>
-		Now we'll look at how to run the first sample inside samples/policy folder.
-		<ol type="1">
-			<li>Open a console and change the directory to sample/policy and give the following command. This will start the server at port 8080</li>
-			<pre>
-<code>$ant service.01</code>
-			</pre>
-			<li>Open a new console and change the directory to sample/policy and type the following command.</li>
-			<pre>
-<code>$ant client.01</code>
-			</pre>
-		</ol>
-		Congratulations! Now you have executed the first sample. Rest of the samples can be run by changing the sample number.
-
-		<h3>Understanding the first sample</h3>
 
-		<ul>
-			<li>Engaging Rampart</li>
-		</ul>
+	    <h3>Engaging Rampart</h3>
 		When securing a SOAP message, the sender must know the security actions to be performed on the message and the receiver must know enough details to process and validate the security of the message. Therefore when using Rampart with Axis2, it must be engaged at both ends.
-		Observe how module has been engaged in server side by opening samples/policy/sample01/services.xml. The following line has engaged the module.
-		Engaging Rampart at client side is done programatically as follows.
+		<p>Observe how module has been engaged in server side by opening samples/policy/sample01/services.xml. The following line has engaged the module.</p>
+		<p>Engaging Rampart at client side is done programatically as follows.</p>
 		<pre>
-ServiceClient client = new ServiceClient(ctx, null);<br></br>
-client.engageModule(&quot;rampart&quot;);
-</pre>
-		<ul>
-			<li>Understanding policy</li>
-		</ul>
-		WS-Security Policy can be used to indicate what security actions that needs be performed on SOAP messages and and what actions should be validated. The file 'samples/policy/sample01/policy.xml' configures Rampart to add Username Token with Timestamp to this message. The element &lt;RampartConfig&gt; in policy.xml defines Rampart specific configurations. 
-		Policy at serverside is included in samples/policy/sample01/services.xml file. This configures Rampart module at serverside to validate the message for Username Token an Timestamp.
+            ServiceClient client = new ServiceClient(ctx, null);<br></br>
+            client.engageModule(&quot;rampart&quot;);
+        </pre>
+		<h3>Understanding policy</h3>
+		<p>WS-Security Policy can be used to indicate what security actions that needs be performed on SOAP messages and and what actions should be validated. The file 'samples/policy/sample01/policy.xml' configures Rampart to add Username Token with Timestamp to this message. The element &lt;RampartConfig&gt; in policy.xml defines Rampart specific configurations. </p>
+		<p>Policy at serverside is included in samples/policy/sample01/services.xml file. This configures Rampart module at serverside to validate the message for Username Token an Timestamp.</p>
 		<p>More details on RampartConfig can be found <a href="rampartconfig-guide.html">here</a>.</p>
 
-		<ul>
-			<li>Viewing the Message on wire</li>
-		</ul>
-		It is interesting to view the secured SOAP message on the wire using TCP monitor. Change the &quot;client.port&quot; property in samples/policy/build.xml file to the listening port of TCP monitor. This will send all the messages through TCP monitor when you execute the ant script. Observe the &lt;wsse:Security&gt; header in the SOAP message.
-
-		<h3>Setting up a Security Token Service</h3>
-		<p>Security Token Service can be set up as per WS-Trust specification using Rampart. The default security token service shipped with the rampart distribution is contained in the rampart-trust.mar module. It can issue SCT tokens and SAML tokens. Sample05 contains a client that connects to the default STS and obtain a SAML token. The services.xml in the sample contains &quot;saml-issuer-config&quot; parameter that is used to configure the default SAML issuer.</p>
-		<strong>STS with a custom issuer</strong>
-		<p>First the default rampart.mar has to be removed from the modules. Then write you own issuer implementing the <code>&quot;org.apache.rahas.TokenIssuer&quot;</code> interface. Let's say that your issuer is <code>&quot;org.custom.MyIssuer&quot;</code>. Then create a Axis2 service archive with the following in the services.xml. Drop the archive into the repository and you have a STS with a CustomToken issuer.</p>
-
-		<pre>
-
-&lt;module ref=&quot;rampart&quot; /&gt;
-
-&lt;operation name=&quot;IssueToken&quot;
-		mep=&quot;http://www.w3.org/2006/01/wsdl/in-out&quot;&gt;
-	&lt;messageReceiver
-			class=&quot;org.apache.rahas.STSMessageReceiver&quot;/&gt;
-
-    &lt;!-- Action mapping to accept RST requests --&gt;
-	&lt;actionMapping&gt;http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT&lt;/actionMapping&gt;
-	&lt;actionMapping&gt;http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue&lt;/actionMapping&gt;
-	&lt;actionMapping&gt;http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Renew&lt;/actionMapping&gt;
-	&lt;actionMapping&gt;http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Cancel&lt;/actionMapping&gt;
-	&lt;actionMapping&gt;http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT/Cancel&lt;/actionMapping&gt;
-	&lt;actionMapping&gt;http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Validate&lt;/actionMapping&gt;
-
-	&lt;parameter name=&quot;token-dispatcher-configuration&quot;&gt;
-		&lt;token-dispatcher-configuration&gt;
-        &lt;!-- Issuers. You may have many issuers. --&gt;
-		&lt;issuer class=&quot;org.custom.MyIssuer&quot; default=&quot;true&quot;&gt;
-				&lt;configuration
-						type=&quot;parameter&quot;&gt;saml-issuer-config&lt;/configuration&gt;
-				&lt;tokenType&gt;http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1&lt;/tokenType&gt;
-			&lt;/issuer&gt;
-		&lt;/token-dispatcher-configuration&gt;
-	&lt;/parameter&gt;
+	    <h3>Viewing the Message on wire</h3>
+		<p>It is interesting to view the secured SOAP message on the wire using TCP monitor. Change the &quot;client.port&quot; property in samples/policy/build.xml file to the listening port of TCP monitor. This will send all the messages through TCP monitor when you execute the ant script. Observe the &lt;wsse:Security&gt; header in the SOAP message.</p>
 
-&lt;/operation&gt;
 
-</pre>
 
 	
 </html>