You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by bu...@apache.org on 2011/07/12 20:02:32 UTC

svn commit: r792600 [34/49] - /websites/staging/openejb/trunk/content/

Modified: websites/staging/openejb/trunk/content/securing-a-web-service.html
==============================================================================
--- websites/staging/openejb/trunk/content/securing-a-web-service.html (original)
+++ websites/staging/openejb/trunk/content/securing-a-web-service.html Tue Jul 12 18:02:27 2011
@@ -155,9 +155,9 @@
           <p>Web Services are a very common way to implement a Service Oriented
 Architecture (SOA).</p>
 
-<p>There are lots of web service standards/specifications (XML, SOAP, WSDL,
+<p>There are lots of web service standards<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">specifications (XML, SOAP, WSDL,
 UUDI, WS-*, ...) coming from organizations like W3C, OASIS, WS-I, ...
-And there are java web service standards like JAX-WS 1.x (JSR 181), JAX-WS
+And there are java web service standards like JAX-WS 1.<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"> (JSR 181), JAX-WS
 2.0 (JSR 224). </p>
 
 <p>OpenEJB provides a standard way to implement web services transport
@@ -178,7 +178,7 @@ It has no impact on developments. It all
 <li># To identify the end user with SSLv3 with client certificate required</li>
 <li># OpenEJB supports BASIC authentication over HTTP(S), using the configured
 JAAS provider. This will honour any EJB security roles you have setup using
-@RolesAllowed. See the webservice-security example in the OpenEJB codebase <a href="http://svn.apache.org/repos/asf/openejb/trunk/openejb3/examples/">http://svn.apache.org/repos/asf/openejb/trunk/openejb3/examples/</a></li>
+@RolesAllowed. See the webservice-security e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample in the OpenEJB codebase [http:<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">svn.apache.org<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">repos<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">asf<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16
 " width="16" align="absmiddle" alt="" border="0">openejb<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">trunk<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">openejb3<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">amples<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">](http:<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align=
 "absmiddle" alt="" border="0"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">svn.apache.org<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">repos<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">asf<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">openejb<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">trunk<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" 
 border="0">openejb3<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">amples<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">)</li>
 </ol></li>
 </ul>
 
@@ -194,16 +194,16 @@ security, 
 Nowadays, SOAP implementations use other protocols than just HTTP so we
 need to apply security to the message itself and not only at the transport
 layer. Moreover, HTTPS can only be used for securing point-to-point
-services which tend to decrease with Enterprise Service Bus for example. </li>
+services which tend to decrease with Enterprise Service Bus for e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample. </li>
 </ul>
 
 <p>The Oasis organization has defined a standard (part of well-known WS-*)
-which aims at providing high level features in the context of web services:
+which aims at providing high level features in the conte<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">t of web services:
 WS-Security. It provides a standard way to secure your services above and
 beyond transport level protocols such as HTTPS. WS-Security relies on other
 standards like XML-Encryption. Main features are:
 * Timestamp a message,
-* Pass credentials (plain text and/or ciphered) between services,
+* Pass credentials (plain te<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">t and<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">or ciphered) between services,
 * Sign messages,
 * Encrypt messages or part of messages.</p>
 
@@ -212,7 +212,7 @@ provides a common and highly configurabl
 association with the JAX-WS usage without vendor dependence. Internally,
 OpenEJB integrates Apache WSS4J as the WS-Security implementation. To use
 the integration, you will need to configure WSS4J using the
-<em>openejb-jar.xml</em>.</p>
+<em>openejb-jar.<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ml</em>.</p>
 
 <p>{warning:title=Warning}
 the proposed WS-Security integration is only used at server side.
@@ -227,14 +227,14 @@ can configure either one or the other or
 client credentials for incoming messages and sign outgoing messages
 (response).</p>
 
-<p><a name="SecuringaWebService-Configurationprinciples"></a></p>
+<p><a name="SecuringaWebService-Configurationprinciples">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
 <h1>Configuration principles</h1>
 
-<p>The configuration is made in the <em>openejb-jar.xml</em>. Each endpoint web
+<p>The configuration is made in the <em>openejb-jar.<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ml</em>. Each endpoint web
 service can provide a set of properties to customize WS-Security behavior
 through the <properties> element. The content of this element is consistent
-with the overall structure of <em>openejb.xml</em>. The format for properties is
+with the overall structure of <em>openejb.<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ml</em>. The format for properties is
 the same as if you would use a common java property file.</p>
 
 <pre><code>[...]
@@ -242,7 +242,7 @@ the same as if you would use a common ja
   wss4j.in.action = UsernameToken
   wss4j.in.passwordType = PasswordDigest
   wss4j.in.passwordCallbackClass=org.superbiz.calculator.CustomPasswordHandler
-&lt;/properties&gt;
+&lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;properties&gt;
 [...]
 </code></pre>
 
@@ -254,99 +254,99 @@ Each property is made of </p>
   <p><em><wss4j>.<in|out>.<wss4j property name>=<wss4j property value></em></p>
 </blockquote>
 
-<p>For example : <em>wss4j.in.action = UsernameToken</em></p>
+<p>For e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample : <em>wss4j.in.action = UsernameToken</em></p>
 
-<p><a name="SecuringaWebService-UsernameToken(Passworddigest)example"></a></p>
+<p><a name="SecuringaWebService-UsernameToken(Passworddigest)e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
-<h1>Username Token (Password digest) example</h1>
+<h1>Username Token (Password digest) e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample</h1>
 
-<p><a name="SecuringaWebService-Excerptfrom*openejb-jar.xml*."></a></p>
+<p><a name="SecuringaWebService-E<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">cerptfrom*openejb-jar.<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ml*.">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
-<h4>Excerpt from <em>openejb-jar.xml</em>.</h4>
+<h4>E<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">cerpt from <em>openejb-jar.<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ml</em>.</h4>
 
-<pre><code>&lt;openejb-jar xmlns="http://openejb.apache.org/xml/ns/openejb-jar-2.2"&gt;
+<pre><code>&lt;openejb-jar &lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;mlns="http:&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;openejb.apache.org&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;ml&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16
 " align="absmiddle" alt="" border="0"&gt;ns&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;openejb-jar-2.2"&gt;
     &lt;enterprise-beans&gt;
     ...
     &lt;session&gt;
-        &lt;ejb-name&gt;CalculatorImpl&lt;/ejb-name&gt;
+        &lt;ejb-name&gt;CalculatorImpl&lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;ejb-name&gt;
         &lt;web-service-security&gt;
-        &lt;security-realm-name/&gt;
-        &lt;transport-guarantee&gt;NONE&lt;/transport-guarantee&gt;
-        &lt;auth-method&gt;WS-SECURITY&lt;/auth-method&gt;
+        &lt;security-realm-name&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&gt;
+        &lt;transport-guarantee&gt;NONE&lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;transport-guarantee&gt;
+        &lt;auth-method&gt;WS-SECURITY&lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;auth-method&gt;
         &lt;properties&gt;
             wss4j.in.action = UsernameToken
             wss4j.in.passwordType = PasswordDigest
         wss4j.in.passwordCallbackClass=org.superbiz.calculator.CustomPasswordHandler
-        &lt;/properties&gt;
-        &lt;/web-service-security&gt;
-    &lt;/session&gt;
+        &lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;properties&gt;
+        &lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;web-service-security&gt;
+    &lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;session&gt;
     ...
-    &lt;/enterprise-beans&gt;
-&lt;/openejb-jar&gt;
+    &lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;enterprise-beans&gt;
+&lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;openejb-jar&gt;
 </code></pre>
 
-<p><a name="SecuringaWebService-Requestsentbytheclient."></a></p>
+<p><a name="SecuringaWebService-Requestsentbytheclient.">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
 <h4>Request sent by the client.</h4>
 
 <p>This request contains SOAP headers to manage security. You can see
 <em>UsernameToken</em> tag from the WS-Security specification.</p>
 
-<pre><code>POST /CalculatorImplUsernameTokenHashedPassword HTTP/1.1
-Content-Type: text/xml; charset=UTF-8
+<pre><code>POST &lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;CalculatorImplUsernameTokenHashedPassword HTTP&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;1.1
+Content-Type: te&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;t&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;ml; charset=UTF-8
 SOAPAction: ""
 Accept: *
 Cache-Control: no-cache
 Pragma: no-cache
-User-Agent: Java/1.5.0_05
+User-Agent: Java&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;1.5.0_05
 Host: 127.0.0.1:8204
 Connection: keep-alive
 Transfer-Encoding: chunked
 
 524
-&lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
+&lt;soap:Envelope &lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;mlns:soap="http:&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;schemas.&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;mlsoap.org&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;soap&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" 
 align="absmiddle" alt="" border="0"&gt;envelope&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;"&gt;
   &lt;soap:Header&gt;
-    &lt;wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soap:mustUnderstand="1"&gt;
-      &lt;wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+    &lt;wsse:Security &lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;mlns:wsse="http:&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;docs.oasis-open.org&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;wss&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;2004&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" wid
 th="16" align="absmiddle" alt="" border="0"&gt;01&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;oasis-200401-wss-wssecurity-sece&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;t-1.0.&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;sd" soap:mustUnderstand="1"&gt;
+      &lt;wsse:UsernameToken &lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;mlns:wsu="http:&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;docs.oasis-open.org&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;wss&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;2004&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="1
 6" width="16" align="absmiddle" alt="" border="0"&gt;01&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;oasis-200401-wss-wssecurity-utility-1.0.&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;sd"
 wsu:Id="UsernameToken-22402238"
-xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"&gt;
-        &lt;wsse:Username xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"&gt;jane&lt;/wsse:Username&gt;
-        &lt;wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest"
-xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"&gt;tf7k3a4GREIt1xec/KXVmBdRNIg=&lt;/wsse:Password&gt;
-        &lt;wsse:Nonce xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"&gt;cKhUhmjQ1hGYPsdOLez5kA==&lt;/wsse:Nonce&gt;
-        &lt;wsu:Created xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt;2009-04-14T20:16:26.203Z&lt;/wsu:Created&gt;
-      &lt;/wsse:UsernameToken&gt;
-    &lt;/wsse:Security&gt;
-  &lt;/soap:Header&gt;
+&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;mlns:wsse="http:&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;docs.oasis-open.org&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;wss&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;2004&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmidd
 le" alt="" border="0"&gt;01&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;oasis-200401-wss-wssecurity-sece&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;t-1.0.&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;sd"&gt;
+        &lt;wsse:Username &lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;mlns:wsse="http:&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;docs.oasis-open.org&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;wss&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;2004&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16"
  width="16" align="absmiddle" alt="" border="0"&gt;01&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;oasis-200401-wss-wssecurity-sece&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;t-1.0.&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;sd"&gt;jane&lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;wsse:Username&gt;
+        &lt;wsse:Password Type="http:&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;docs.oasis-open.org&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;wss&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;2004&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;01&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" wi
 dth="16" align="absmiddle" alt="" border="0"&gt;oasis-200401-wss-username-token-profile-1.0#PasswordDigest"
+&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;mlns:wsse="http:&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;docs.oasis-open.org&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;wss&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;2004&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmidd
 le" alt="" border="0"&gt;01&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;oasis-200401-wss-wssecurity-sece&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;t-1.0.&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;sd"&gt;tf7k3a4GREIt1&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;ec&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;KXVmBdRNIg=&lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icon
 s/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;wsse:Password&gt;
+        &lt;wsse:Nonce &lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;mlns:wsse="http:&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;docs.oasis-open.org&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;wss&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;2004&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" wi
 dth="16" align="absmiddle" alt="" border="0"&gt;01&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;oasis-200401-wss-wssecurity-sece&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;t-1.0.&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;sd"&gt;cKhUhmjQ1hGYPsdOLez5kA==&lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;wsse:Nonce&gt;
+        &lt;wsu:Created &lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;mlns:wsu="http:&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;docs.oasis-open.org&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;wss&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;2004&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" wi
 dth="16" align="absmiddle" alt="" border="0"&gt;01&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;oasis-200401-wss-wssecurity-utility-1.0.&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;sd"&gt;2009-04-14T20:16:26.203Z&lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;wsu:Created&gt;
+      &lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;wsse:UsernameToken&gt;
+    &lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;wsse:Security&gt;
+  &lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;soap:Header&gt;
   &lt;soap:Body&gt;
-    &lt;ns1:sum xmlns:ns1="http://superbiz.org/wsdl"&gt;
-      &lt;arg0&gt;4&lt;/arg0&gt;
-      &lt;arg1&gt;6&lt;/arg1&gt;
-    &lt;/ns1:sum&gt;
-  &lt;/soap:Body&gt;
-&lt;/soap:Envelope&gt;
+    &lt;ns1:sum &lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;mlns:ns1="http:&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;superbiz.org&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;wsdl"&gt;
+      &lt;arg0&gt;4&lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;arg0&gt;
+      &lt;arg1&gt;6&lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;arg1&gt;
+    &lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;ns1:sum&gt;
+  &lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;soap:Body&gt;
+&lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;soap:Envelope&gt;
 </code></pre>
 
-<p><a name="SecuringaWebService-Theresponsereturnedfromtheserver."></a></p>
+<p><a name="SecuringaWebService-Theresponsereturnedfromtheserver.">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
 <h4>The response returned from the server.</h4>
 
-<pre><code>HTTP/1.1 200 OK
+<pre><code>HTTP&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;1.1 200 OK
 Content-Length: 200
 Connection: close
-Content-Type: text/xml; charset=UTF-8
-Server: OpenEJB/??? (unknown os)
+Content-Type: te&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;t&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;ml; charset=UTF-8
+Server: OpenEJB&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;??? (unknown os)
 
-&lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
+&lt;soap:Envelope &lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;mlns:soap="http:&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;schemas.&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;mlsoap.org&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;soap&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" 
 align="absmiddle" alt="" border="0"&gt;envelope&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;"&gt;
   &lt;soap:Body&gt;
-    &lt;ns1:sumResponse xmlns:ns1="http://superbiz.org/wsdl"&gt;
-      &lt;return&gt;10&lt;/return&gt;
-    &lt;/ns1:sumResponse&gt;
-  &lt;/soap:Body&gt;
-&lt;/soap:Envelope&gt;
+    &lt;ns1:sumResponse &lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;mlns:ns1="http:&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;superbiz.org&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;wsdl"&gt;
+      &lt;return&gt;10&lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;return&gt;
+    &lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;ns1:sumResponse&gt;
+  &lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;soap:Body&gt;
+&lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;soap:Envelope&gt;
 </code></pre>
 
-<p><a name="SecuringaWebService-JAASwithWS-Security"></a></p>
+<p><a name="SecuringaWebService-JAASwithWS-Security">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
 <h1>JAAS with WS-Security</h1>
 
@@ -355,16 +355,16 @@ calls to the OpenEJB SecurityService to 
 CallbackHandler. Once you have done this, any permissions configured with
 @RolesAllowed should be honoured.</p>
 
-<p>Here is a snippet from the webservice-ws-security example demonstrating
+<p>Here is a snippet from the webservice-ws-security e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample demonstrating
 this:</p>
 
 <pre><code>public class CustomPasswordHandler implements CallbackHandler {
 
-    public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
+    public void handle(Callback[] callbacks) throws IOE&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;ception, UnsupportedCallbackE&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;ception {
         WSPasswordCallback pc = (WSPasswordCallback) callbacks[0];
 
         if (pc.getUsage() == WSPasswordCallback.USERNAME_TOKEN) {
-            // TODO get the password from the users.properties if possible
+            &lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt; TODO get the password from the users.properties if possible
             pc.setPassword("waterfall");
 
         } else if (pc.getUsage() == WSPasswordCallback.DECRYPT) {
@@ -387,20 +387,20 @@ this:</p>
                 token = securityService.login(pc.getIdentifer(), pc.getPassword());
                 securityService.associate(token);
 
-            } catch (LoginException e) {
+            } catch (LoginE&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;ception e) {
                 e.printStackTrace();
-                throw new SecurityException("wrong password");
+                throw new SecurityE&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;ception("wrong password");
             }
         }
     }
 }
 </code></pre>
 
-<p><a name="SecuringaWebService-Examples"></a></p>
+<p><a name="SecuringaWebService-E<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">amples">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
-<h1>Examples</h1>
+<h1>E<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">amples</h1>
 
-<p>A full example (webservice-ws-security) is available with OpenEJB Examples.</p>
+<p>A full e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample (webservice-ws-security) is available with OpenEJB E<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">amples.</p>
 
             </DIV>
           </P>

Modified: websites/staging/openejb/trunk/content/security-annotations.html
==============================================================================
--- websites/staging/openejb/trunk/content/security-annotations.html (original)
+++ websites/staging/openejb/trunk/content/security-annotations.html Tue Jul 12 18:02:27 2011
@@ -155,14 +155,14 @@
           <p>This page shows the correct usage of the security related annotations:</p>
 
 <ul>
-<li>javax.annotation.security.RolesAllowed</li>
-<li>javax.annotation.security.PermitAll</li>
-<li>javax.annotation.security.DenyAll</li>
-<li>javax.annotation.security.RunAs</li>
-<li>javax.annotation.security.DeclareRoles</li>
+<li>java<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">.annotation.security.RolesAllowed</li>
+<li>java<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">.annotation.security.PermitAll</li>
+<li>java<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">.annotation.security.DenyAll</li>
+<li>java<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">.annotation.security.RunAs</li>
+<li>java<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">.annotation.security.DeclareRoles</li>
 </ul>
 
-<p><a name="SecurityAnnotations-Basicidea"></a></p>
+<p><a name="SecurityAnnotations-Basicidea">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
 <h2>Basic idea</h2>
 
@@ -170,18 +170,18 @@
 <li>By default all methods of a business interface are accessible, logged in
 or not</li>
 <li>The annotations go on the bean class, not the business interface</li>
-<li>Security annotations can be applied to entire class and/or individual
+<li>Security annotations can be applied to entire class and<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">or individual
 methods</li>
 <li>The names of any security roles used must be declared via @DeclareRoles</li>
 </ul>
 
-<p><a name="SecurityAnnotations-Norestrictions"></a></p>
+<p><a name="SecurityAnnotations-Norestrictions">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
 <h2>No restrictions</h2>
 
 <p>Allow anyone logged in or not to invoke 'svnCheckout'.</p>
 
-<p>These three examples are all equivalent.</p>
+<p>These three e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">amples are all equivalent.</p>
 
 <pre><code>@Stateless
 public class OpenSourceProjectBean implements Project {
@@ -216,7 +216,7 @@ public class OpenSourceProjectBean imple
 <li>Allow anyone logged in or not to invoke 'svnCheckout'.</li>
 </ul>
 
-<p><a name="SecurityAnnotations-RestrictingaMethod"></a></p>
+<p><a name="SecurityAnnotations-RestrictingaMethod">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
 <h2>Restricting a Method</h2>
 
@@ -244,7 +244,7 @@ public class OpenSourceProjectBean imple
 <li>Allow anyone logged in or not to invoke 'svnCheckout'.</li>
 </ul>
 
-<p><a name="SecurityAnnotations-DeclareRoles"></a></p>
+<p><a name="SecurityAnnotations-DeclareRoles">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
 <h2>DeclareRoles</h2>
 
@@ -255,11 +255,11 @@ isCallerInRole(roleName).</p>
 @DeclareRoles({"committer", "contributor"})
 public class OpenSourceProjectBean implements Project {
 
-    @Resource SessionContext ctx;
+    @Resource SessionConte&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;t ct&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;;
 
     @RolesAllowed({"committer"})
     public String svnCommit(String s) {
-    ctx.isCallerInRole("committer"); // Referencing a Role
+    ct&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;.isCallerInRole("committer"); &lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt; Referencing a Role
     return s;
     }
 
@@ -270,7 +270,7 @@ public class OpenSourceProjectBean imple
 }
 </code></pre>
 
-<p><a name="SecurityAnnotations-Restrictingallmethodsinaclass"></a></p>
+<p><a name="SecurityAnnotations-Restrictingallmethodsinaclass">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
 <h2>Restricting all methods in a class</h2>
 
@@ -300,9 +300,9 @@ public class OpenSourceProjectBean imple
 'svnCheckout' or 'submitPatch'.</li>
 </ul>
 
-<p><a name="SecurityAnnotations-Mixingclassandmethodlevelrestrictions"></a></p>
+<p><a name="SecurityAnnotations-Mi<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ingclassandmethodlevelrestrictions">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
-<h2>Mixing class and method level restrictions</h2>
+<h2>Mi<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ing class and method level restrictions</h2>
 
 <p>Security annotations can be used at the class level and method level at the
 same time.  These rules do not stack, so marking 'submitPatch' overrides
@@ -335,7 +335,7 @@ or 'svnCheckout'</li>
 'submitPatch'.  </li>
 </ul>
 
-<p><a name="SecurityAnnotations-PermitAll"></a></p>
+<p><a name="SecurityAnnotations-PermitAll">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
 <h2>PermitAll</h2>
 
@@ -371,7 +371,7 @@ public class OpenSourceProjectBean imple
 <li>Allow anyone logged in or not to invoke 'svnCheckout'.</li>
 </ul>
 
-<p><a name="SecurityAnnotations-DenyAll"></a></p>
+<p><a name="SecurityAnnotations-DenyAll">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
 <h2>DenyAll</h2>
 
@@ -414,7 +414,7 @@ public class OpenSourceProjectBean imple
 <li>Allow <em>no one</em> logged in or not to invoke 'deleteProject'.</li>
 </ul>
 
-<p><a name="SecurityAnnotations-IllegalUsage"></a></p>
+<p><a name="SecurityAnnotations-IllegalUsage">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
 <h1>Illegal Usage</h1>
 
@@ -441,11 +441,11 @@ public class MyStatefulBean implements  
 
     @AroundInvoke
     @RolesAllowed({"committer"})
-    public Object invoke(InvocationContext invocationContext) throws
+    public Object invoke(InvocationConte&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;t invocationConte&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;t) throws
 </code></pre>
 
-<p>Exception {
-        return invocationContext.proceed();
+<p>E<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ception {
+        return invocationConte<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">t.proceed();
         }</p>
 
 <pre><code>    @PostActivate

Modified: websites/staging/openejb/trunk/content/security.html
==============================================================================
--- websites/staging/openejb/trunk/content/security.html (original)
+++ websites/staging/openejb/trunk/content/security.html Tue Jul 12 18:02:27 2011
@@ -152,35 +152,35 @@
           <P>
             <!-- $BODY -->
             <DIV id="PageContent">
-          <p><a name="Security-Security-HowTo."></a></p>
+          <p><a name="Security-Security-HowTo.">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
 <h1>Security - How To.</h1>
 
 <p>We currently have two authentication mechanisms to choose from:
-* <em>PropertiesLoginModule</em> (a basic text file based login that looks up
+* <em>PropertiesLoginModule</em> (a basic te<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">t file based login that looks up
 users and groups from the specified properties files)
 * <em>SQLLoginModule</em> (database based login that looks up users and groups
 in a database through SQL queries)</p>
 
 <p>To make your program authenticate itself to the server, simply construct
-your InitialContext with the standard javax.naming.Context properties for
-user/pass info, which is:</p>
+your InitialConte<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">t with the standard java<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">.naming.Conte<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">t properties for
+user<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">pass info, which is:</p>
 
 <pre><code>Properties props = new Properties();
-props.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.RemoteInitialContextFactory");
-props.setProperty(Context.PROVIDER_URL, "ejbd://localhost:4201");
-props.setProperty(Context.SECURITY_PRINCIPAL, "someuser");
-props.setProperty(Context.SECURITY_CREDENTIALS, "thepass");
+props.setProperty(Conte&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;t.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.RemoteInitialConte&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;tFactory");
+props.setProperty(Conte&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;t.PROVIDER_URL, "ejbd:&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;localhost:4201");
+props.setProperty(Conte&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;t.SECURITY_PRINCIPAL, "someuser");
+props.setProperty(Conte&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;t.SECURITY_CREDENTIALS, "thepass");
 props.setProperty("openejb.authentication.realmName", "PropertiesLogin");
-// optional
-InitialContext ctx = new InitialContext(props);
-ctx.lookup(...);
+&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt; optional
+InitialConte&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;t ct&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt; = new InitialConte&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;t(props);
+ct&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;.lookup(...);
 </code></pre>
 
-<p>That will get you logged in and all your calls from that context should
-execute as you.</p>
+<p>That will get you logged in and all your calls from that conte<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">t should
+e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ecute as you.</p>
 
-<p><em>${openejb.base}/conf/login.config</em> is a standard JAAS config file.
+<p><em>${openejb.base}<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">conf<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">login.config</em> is a standard JAAS config file.
 Here, you can configure any number of security realms to authenticate
 against.
 To specify which of the realms you want to authenticate against, you can
@@ -188,33 +188,32 @@ set the <em>openejb.authentication.realm
 configured realm names in <em>login.config</em>.
 If you don't speficy a realm name, the default (currently
 <em>PropertiesLogin</em>) is used.
-For examples and more information on JAAS configuration, see the <a href="http://java.sun.com/javase/6/docs/technotes/guides/security/jaas/JAASRefGuide.html">JAAS Reference Guide</a>
+For e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">amples and more information on JAAS configuration, see the [JAAS Reference Guide](http:<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">java.sun.com<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">javase<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">6<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" h
 eight="16" width="16" align="absmiddle" alt="" border="0">docs<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">technotes<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">guides<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">security<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">jaas<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">JAASRefGuide.html)
 .</p>
 
-<p><a name="Security-PropertiesLoginModule"></a></p>
+<p><a name="Security-PropertiesLoginModule">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
 <h2>PropertiesLoginModule</h2>
 
-<p>Supported options:</p>
-
+<p>Supported options:
 <table>
-<tr><th>Option</th><th>Description</th><th>Required</th></tr>
-<tr><td>UsersFile</td><td>name of the properties file that contains the users and their
-passwords</td><td>*yes*</td></tr>
-<tr><td>GroupsFile</td><td>name of the properties file that contains the groups and their
-member lists</td><td>*yes*</td></tr>
-</table>
+<tr><th>Option&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">th><th>Description&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">th><th>Required&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">th>&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">tr>
+<tr><td>UsersFile&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td>name of the properties file that contains the users and their
+passwords&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td><em>yes</em>&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td>&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">tr>
+<tr><td>GroupsFile&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td>name of the properties file that contains the groups and their
+member lists&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td><em>yes</em>&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td>&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">tr>
+&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">table></p>
 
 <p><em>UsersFile</em> and <em>GroupsFile</em> are read in on every login, so +you can
 update them+ on a running system and those users will "show up" immediately
 +without the need for a restart+ of any kind.</p>
 
-<p><a name="Security-SQLLoginModule"></a></p>
+<p><a name="Security-SQLLoginModule">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
 <h2>SQLLoginModule</h2>
 
 <p>You can either use a data source or configure the JDBC URL through which
-the user/group lookups will be made.</p>
+the user<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">group lookups will be made.</p>
 
 <p>If you use a <em>DataSource</em>, you must specify its JNDI name with the
 <em>dataSourceName</em> option.</p>
@@ -224,7 +223,7 @@ database.
 The driver should be autodetected (provided the appropriate jar is on your
 classpath), but if that fails for some reason, you can force a specific
 driver using the <em>jdbcDriver</em> option.
-For more information on JDBC URLs, see the <a href="http://java.sun.com/javase/6/docs/technotes/guides/jdbc/">JDBC Guide</a></p>
+For more information on JDBC URLs, see the [JDBC Guide](http:<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">java.sun.com<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">javase<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">6<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">docs<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align
 ="absmiddle" alt="" border="0">technotes<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">guides<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">jdbc<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">)</p>
 
 <p>The <em>userSelect</em> query must return a two-column list of user names
 (column 1) and passwords (column 2). This query should normally return a
@@ -235,27 +234,26 @@ that the client is trying to log in with
 The <em>groupSelect</em> query must return a two-column list of user names and
 their groups (or "roles" in the EJB world).</p>
 
-<p>Supported options:</p>
-
+<p>Supported options:
 <table>
-<tr><th>Option</th><th>Description</th><th>Required</th></tr>
-<tr><td>dataSourceName</td><td>the name of a data source</td><td>*yes* (alternative 1)</td></tr>
-<tr><td>jdbcURL</td><td>a standard JDBC URL</td><td>*yes* (alternative 2)</td></tr>
-<tr><td>jdbcDriver</td><td>the fully qualified class name of the database driver</td><td>no</td></tr>
-<tr><td>jdbcUser</td><td>the user name for accessing the database</td><td>no</td></tr>
-<tr><td>jdbcPassword</td><td>the password for accessing the database</td><td>no</td></tr>
-<tr><td>userSelect</td><td>the SQL query that returns a list of users and their
-passwords</td><td>*yes*
-</tr>
-<tr><td>groupSelect</td><td>the SQL query that returns a list of users and groups
-(roles)</td><td>*yes*
-</tr>
-<tr><td>digest</td><td>the name of the digest algorithm (e.g. "MD5" or "SHA") for digest
-authentication</td><td>no</td></tr>
-<tr><td>encoding</td><td>the digest encoding, can be "hex" or "base64"</td><td>no</td></tr>
-</table>
+<tr><th>Option&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">th><th>Description&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">th><th>Required&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">th>&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">tr>
+<tr><td>dataSourceName&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td>the name of a data source&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td><em>yes</em> (alternative 1)&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td>&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">tr>
+<tr><td>jdbcURL&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td>a standard JDBC URL&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td><em>yes</em> (alternative 2)&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td>&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">tr>
+<tr><td>jdbcDriver&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td>the fully qualified class name of the database driver&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td>no&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td>&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">tr>
+<tr><td>jdbcUser&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td>the user name for accessing the database&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td>no&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td>&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">tr>
+<tr><td>jdbcPassword&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td>the password for accessing the database&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td>no&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td>&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">tr>
+<tr><td>userSelect&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td>the SQL query that returns a list of users and their
+passwords&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td><em>yes</em>
+&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">tr>
+<tr><td>groupSelect&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td>the SQL query that returns a list of users and groups
+(roles)&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td><em>yes</em>
+&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">tr>
+<tr><td>digest&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td>the name of the digest algorithm (e.g. "MD5" or "SHA") for digest
+authentication&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td>no&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td>&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">tr>
+<tr><td>encoding&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td>the digest encoding, can be "he<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">" or "base64"&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td><td>no&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">td>&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">tr>
+&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">table></p>
 
-<p><a name="Security-PLUGPOINTS"></a></p>
+<p><a name="Security-PLUGPOINTS">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
 
 <h1>PLUG POINTS</h1>
 
@@ -268,8 +266,8 @@ there" or need total control, this is wh
 SecurityService should really be a last resort. We still have our "do
 nothing" SecurityService implementation just as before, but it is no longer
 the default. +You can add a new SecurityService impl by creating a
-service-jar.xml and packing it in your jar+.  You can configure OpenEJB to
-use a different SecurityService via the openejb.xml.</p>
+service-jar.<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ml and packing it in your jar+.  You can configure OpenEJB to
+use a different SecurityService via the openejb.<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ml.</p>
 
 <ul>
 <li><p><em>JaccProvider super class</em>:  If you want to plug in your own JACC
@@ -284,14 +282,14 @@ things you have to do to create and plug
 still plugin a JACC provider in the standard ways.  Read the JACC spec for
 that info.</p></li>
 <li><p><em>JAAS LoginModule</em>.  You can setup a different JAAS LoginModule to do all
-your authentication by simply editing the conf/login.config file which is a
-plain JAAS config file.  At the moment we only support username/password
+your authentication by simply editing the conf<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">login.config file which is a
+plain JAAS config file.  At the moment we only support username<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">password
 based login modules.  At some point it would be nice to support any kind of
-input for a JAAS LoginModule, but username/password at least covers the
+input for a JAAS LoginModule, but username<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">password at least covers the
 majority.  It actually <em>is</em> possible to support any LoginModule, but you
 would have to supply your clients with your own way to authenticate to it
 and write a strategy for telling the OpenEJB client what data to send to
-the server with each invocation request. See the <a href="http://java.sun.com/javase/6/docs/technotes/guides/security/jaas/JAASLMDevGuide.html">JAAS LoginModule Developer's Guide</a>
+the server with each invocation request. See the [JAAS LoginModule Developer's Guide](http:<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">java.sun.com<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">javase<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">6<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">docs<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif
 " height="16" width="16" align="absmiddle" alt="" border="0">technotes<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">guides<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">security<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">jaas<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">JAASLMDevGuide.html)
 for more information.</p></li>
 <li><p><em>Client IdentityResolver</em>.  This is the just mentioned interface you
 would have to implement to supply the OpenEJB client with alternate data to