Author: buildbot
Date: Tue Aug 5 15:47:25 2014
New Revision: 918471
Log:
Production update by buildbot for cxf
Modified:
websites/production/cxf/content/cache/docs.pageCache
websites/production/cxf/content/docs/secure-jax-rs-services.html
Modified: websites/production/cxf/content/cache/docs.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/cxf/content/docs/secure-jax-rs-services.html
==============================================================================
--- websites/production/cxf/content/docs/secure-jax-rs-services.html (original)
+++ websites/production/cxf/content/docs/secure-jax-rs-services.html Tue Aug 5
15:47:25 2014
@@ -118,12 +118,12 @@ Apache CXF -- Secure JAX-RS Services
<td height="100%">
<!-- Content -->
<div class="wiki-content">
-<div id="ConfluenceContent"><p> </p><p> </p><p> </p><p><span
style="font-size:2em;font-weight:bold"> JAX-RS: Security
</span></p><p> </p><p> </p><p> </p><p><style
type="text/css">/*<![CDATA[*/
-div.rbtoc1400294782226 {padding: 0px;}
-div.rbtoc1400294782226 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1400294782226 li {margin-left: 0px;padding-left: 0px;}
+<div id="ConfluenceContent"><p> </p><p> </p><p> </p><span
style="font-size:2em;font-weight:bold"> JAX-RS: Security
</span><p> </p><p> </p><p> </p><p><style
type="text/css">/*<![CDATA[*/
+div.rbtoc1407253614379 {padding: 0px;}
+div.rbtoc1407253614379 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1407253614379 li {margin-left: 0px;padding-left: 0px;}
-/*]]>*/</style></p><div class="toc-macro rbtoc1400294782226">
+/*]]>*/</style></p><div class="toc-macro rbtoc1407253614379">
<ul class="toc-indentation"><li><a shape="rect"
href="#SecureJAX-RSServices-HTTPS">HTTPS</a>
<ul class="toc-indentation"><li><a shape="rect"
href="#SecureJAX-RSServices-Configuringendpoints">Configuring
endpoints</a></li><li><a shape="rect"
href="#SecureJAX-RSServices-Configuringclients">Configuring
clients</a></li></ul>
</li><li><a shape="rect"
href="#SecureJAX-RSServices-Authentication">Authentication</a></li><li><a
shape="rect"
href="#SecureJAX-RSServices-Authorization">Authorization</a></li><li><a
shape="rect" href="#SecureJAX-RSServices-WS-Trustintegration">WS-Trust
integration</a>
@@ -158,7 +158,7 @@ div.rbtoc1400294782226 li {margin-left:
</httpj:engine-factory>
</beans>
]]></script>
-</div></div><p>If you use JAXRSServerFactoryBean to create and start JAX-RS
endpoints from the code then the above configuration can be utilized like
this:</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
+</div></div><p>Instead keyPassword in keyManager you can also specify
keyPasswordCallbackHandler attribute. In this case attribute must contain full
name of the class implementing JSE <a shape="rect" class="external-link"
href="http://docs.oracle.com/javase/7/docs/api/javax/security/auth/callback/CallbackHandler.html"
rel="nofollow">CallbackHandler </a>interface and providing key password on the
runtime. Sample key password callback handler implementation can be found <a
shape="rect" class="external-link"
href="https://github.com/apache/cxf/blob/master/systests/transports/src/test/java/org/apache/cxf/systest/http/KeyPasswordCallbackHandler.java"
rel="nofollow">here</a>.</p><p>If you use JAXRSServerFactoryBean to create and
start JAX-RS endpoints from the code then the above configuration can be
utilized like this:</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[JAXRSServerFactoryBean bean = new
JAXRSServerFactoryBean();
SpringBusFactory bf = new SpringBusFactory();
Bus bus = bf.createBus("configuration/beans.xml");