axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cha...@apache.org
Subject svn commit: r494003 - /webservices/axis2/branches/java/1_1/xdocs/modules/rampart/1_1/security-module.html
Date Mon, 08 Jan 2007 09:55:19 GMT
Author: chatra
Date: Mon Jan  8 01:55:16 2007
New Revision: 494003

URL: http://svn.apache.org/viewvc?view=rev&rev=494003
Log:
added content from diff in https://issues.apache.org/jira/browse/AXIS2-1949

Modified:
    webservices/axis2/branches/java/1_1/xdocs/modules/rampart/1_1/security-module.html

Modified: webservices/axis2/branches/java/1_1/xdocs/modules/rampart/1_1/security-module.html
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/xdocs/modules/rampart/1_1/security-module.html?view=diff&rev=494003&r1=494002&r2=494003
==============================================================================
--- webservices/axis2/branches/java/1_1/xdocs/modules/rampart/1_1/security-module.html (original)
+++ webservices/axis2/branches/java/1_1/xdocs/modules/rampart/1_1/security-module.html Mon
Jan  8 01:55:16 2007
@@ -65,6 +65,16 @@
 <a href="sec-conf/sample-services.xml">here</a>.
 
 <h3>Client Confiuration</h3>
+<p>On the client side, a policy object should be created and loaded into options. Creating
the policy object can be done using a "policy.xml" file as follows.</p>
+	
+<pre>
+	//Creating the object
+  	StAXOMBuilder builder = new StAXOMBuilder(pathToPolicyfile);
+        Policy clientPolicy = PolicyEngine.getPolicy(builder.getDocumentElement());
+	//setting the object
+	Options options = new Options();
+        options.setProperty(RampartMessageData.KEY_RAMPART_POLICY, clientPolicy);
+</pre>
 
 <h2>Rampart-1.0 Configuration</h2>
 



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