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:27:11 UTC

svn commit: r671762 - /webservices/rampart/site/java/samples.html

Author: nandana
Date: Wed Jun 25 22:27:11 2008
New Revision: 671762

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

Added:
    webservices/rampart/site/java/samples.html

Added: webservices/rampart/site/java/samples.html
URL: http://svn.apache.org/viewvc/webservices/rampart/site/java/samples.html?rev=671762&view=auto
==============================================================================
--- webservices/rampart/site/java/samples.html (added)
+++ webservices/rampart/site/java/samples.html Wed Jun 25 22:27:11 2008
@@ -0,0 +1,374 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+
+
+
+
+
+
+
+
+
+<html>
+  <head>
+    <title>Apache Rampart - 
+        Apache Rampart Samples</title>
+    <style type="text/css" media="all">
+      @import url("./css/maven-base.css");
+      @import url("./css/maven-theme.css");
+      @import url("./css/site.css");
+    </style>
+    <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
+        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+      </head>
+  <body class="composite">
+    <div id="banner">
+                  <a href="images/apache-rampart-logo.jpg" id="bannerLeft">
+    
+            Apache Rampart
+    
+            </a>
+                        <a href="http://www.apache.org" id="bannerRight">
+    
+                                            <img src="images/apache-rampart-banner.jpg" alt="" />
+    
+            </a>
+            <div class="clear">
+        <hr/>
+      </div>
+    </div>
+    <div id="breadcrumbs">
+          
+  
+
+  
+    
+  
+  
+            <div class="xleft">
+        Last Published: 23 Jun 2008
+                      </div>
+            <div class="xright">      <a href="../../">WebServices</a>
+          |
+          <a href="http://ws.apache.org/axis2">Axis2/Java</a>
+          
+  
+
+  
+    
+  
+  
+  </div>
+      <div class="clear">
+        <hr/>
+      </div>
+    </div>
+    <div id="leftColumn">
+      <div id="navcolumn">
+           
+  
+
+  
+    
+  
+  
+                   <h5>Apache Rampart</h5>
+        <ul>
+              
+    <li class="none">
+              <a href="index.html">Home</a>
+        </li>
+              
+          
+              
+      
+            
+      
+              
+        <li class="expanded">
+              <a href="">Downloads</a>
+                <ul>
+                  
+    <li class="none">
+              <a href="download.html">Releases</a>
+        </li>
+                  
+    <li class="none">
+              <a href="source-repository.html">Source Code</a>
+        </li>
+              </ul>
+        </li>
+              
+          
+              
+      
+            
+            
+            
+      
+            
+      
+            
+      
+            
+      
+            
+      
+              
+            <li class="expanded">
+              <a href="">Documentation</a>
+                <ul>
+                  
+    <li class="none">
+              <a href="quick-start.html">Getting Started</a>
+        </li>
+                  
+    <li class="none">
+              <strong>Samples</strong>
+        </li>
+                  
+    <li class="none">
+              <a href="http://wiki.apache.org/ws/FrontPage/Rampart/FAQ">FAQ</a>
+        </li>
+                  
+    <li class="none">
+              <a href="rampartconfig-guide.html">Rampart Configuration</a>
+        </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>
+              
+          
+              
+      
+            
+      
+            
+      
+              
+        <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="team-list.html">Project Team</a>
+        </li>
+                  
+    <li class="none">
+              <a href="http://issues.apache.org/jira/browse/Rampart">Issue Tracking</a>
+        </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>
+                                       <a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy">
+            <img alt="Built by Maven" src="./images/logos/maven-feather.png"></img>
+          </a>
+                       
+  
+
+  
+    
+  
+  
+        </div>
+    </div>
+    <div id="bodyColumn">
+      <div id="contentBox">
+        
+    
+    <head>
+    </head>
+  
+        <h1>Rampart Samples</h1>
+        <h2> Basic samples </h2>
+        <p>These samples use parameter based configuration model. This will be a great starting point to get a basic understanding of how WS Security really works.  </p>
+        <h2> Policy samples </h2>
+        <p>These samples use WS Security Policy Language for configuration. It is recommended to use policy based configuration model for all production scenarios </p>
+        <h3>Running Samples</h3>
+        <p>Now we'll look at how to run the first sample inside samples/policy folder.</p>
+        <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.
+        <br></br>
+        <br></br>
+        <h3>Samples</h3>
+        <br></br>
+        <table class="bodyTable">
+            <tbody>
+                <tr class="a"><td>Sample 01</td></tr>
+                <tr class="b"></tr>           
+           </tbody>
+        </table>
+        <div style="margin-left:2px;margin-right:-2px;">UsernameToken Authentication, The policy uses a TransportBinding and requires a SignedSupportingToken which 
+is a UsernameToken and the inclusion of a TimeStamp. </div>
+        <ul>
+            <li><a href="samples/policy/sample01.xml">Policy</a></li>
+            <li><a href="samples/msgs/req01.xml">Request Message</a></li>
+            <li><a href="samples/msgs/res01.xml">Response Message</a></li>
+        </ul>
+
+        <br></br>
+        <table class="bodyTable">
+            <tbody>
+                <tr class="a"><td>Sample 02</td></tr>
+                <tr class="b"></tr>
+           </tbody>
+        </table>
+        <div class="b" style="margin-left:2px;margin-right:-2px;">Sign only, An AsymmetricBinding is used. Entire headers and body to be signed.
+Algorithm suite is TripleDesRsa15.</div>
+        <ul>
+            <li><a href="samples/policy/sample02.xml">Policy</a></li>
+            <li><a href="samples/msgs/req02.xml">Request Message</a></li>
+            <li><a href="samples/msgs/res02.xml">Response Message</a></li>
+        </ul>
+        <br></br>
+        <table class="bodyTable">
+            <tbody>
+                <tr class="a"><td>Sample 03</td></tr>
+                <tr class="b"></tr>           
+           </tbody>
+        </table>
+        <div class="b" style="margin-left:2px;margin-right:-2px;">Sign and Encrypt messages, An AsymmetricBinding is used. Entire headers and body to be signed. 
+EncryptionParts specifies the Body to be encrypted. </div>
+        <ul>
+            <li><a href="samples/policy/sample03.xml">Policy</a></li>
+            <li><a href="samples/msgs/req03.xml">Request Message</a></li>
+            <li><a href="samples/msgs/res03.xml">Response Message</a></li>
+        </ul>
+        <br></br>
+        <table class="bodyTable">
+            <tbody>
+                <tr class="a"><td>Sample 04</td></tr>
+                <tr class="b"></tr>
+           </tbody>
+        </table>
+        <div class="b" style="margin-left:2px;margin-right:-2px;">SecureConversation , The secure session is bootstrapped using a SymetricBinding which uses derived keys based on an ephemeral key. 
+Messages in the secure conversation includes a timestamp, all headers are signed along with the timestamp, signature encrypted and body encrypted.</div>
+        <ul>
+            <li><a href="samples/policy/sample04.xml">Policy</a></li>
+            <li><a href="samples/msgs/rst04.xml">Bootstrap request (RST)</a></li>
+            <li><a href="samples/msgs/rstr04.xml">Bootstrap response (RSTR)</a></li>
+            <li><a href="samples/msgs/req04.xml">Request Message</a></li>
+            <li><a href="samples/msgs/res04.xml">Response Message</a></li>
+            <li><a href="samples/msgs/creq04.xml">Cancel request </a></li>
+            <li><a href="samples/msgs/cres04.xml">Cancel response</a></li>
+        </ul>
+        <br></br>
+        <table class="bodyTable">
+            <tbody>
+                <tr class="a"><td>Sample 05</td></tr>                
+                <tr class="b"></tr>            
+           </tbody>
+        </table>
+        <div class="b" style="margin-left:2px;margin-right:-2px;">WS-Trust - RST - Resquest Security Token Service - Issuing a SAML token - issuing a token </div>
+        <ul>
+            <li><a href="samples/policy/sample05.xml">Policy</a></li>
+            <li><a href="samples/msgs/req05.xml">Request Message</a></li>
+            <li><a href="samples/msgs/res05.xml">Response Message</a></li>
+        </ul>
+        <br></br>
+        <table class="bodyTable">
+            <tbody>
+                <tr class="a"><td>Sample 06</td></tr>              
+                <tr class="b"></tr>
+           </tbody>
+        </table>
+        <div class="b" style="margin-left:2px;margin-right:-2px;">WS-Trust ( With WS Metada Exchange) - RST - Resquest Security Token Service - Issuing a SAML token  </div>
+        <ul>
+            <li><a href="samples/policy/sample01.xml">Policy</a></li>
+            <li><a href="samples/msgs/req06.xml">Request Message</a></li>
+            <li><a href="samples/msgs/res06.xml">Response Message</a></li>
+        </ul>
+  
+ 
+      </div>
+    </div>
+    <div class="clear">
+      <hr/>
+    </div>
+    <div id="footer">
+      <div class="xright">&#169;  
+          2005-2008
+    
+          Apache Software Foundation
+          
+  
+
+  
+    
+  
+  
+  </div>
+      <div class="clear">
+        <hr/>
+      </div>
+    </div>
+  </body>
+</html>