openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1785705 [3/9] - in /openwebbeans/cms-site/trunk/content/meecrowave: ./ meecrowave-core/ meecrowave-gradle/ meecrowave-jolokia/ meecrowave-jpa/ meecrowave-jta/ meecrowave-maven/ meecrowave-oauth2/ testing/
Date Mon, 06 Mar 2017 17:42:44 GMT
Modified: openwebbeans/cms-site/trunk/content/meecrowave/meecrowave-core/configuration.html
URL: http://svn.apache.org/viewvc/openwebbeans/cms-site/trunk/content/meecrowave/meecrowave-core/configuration.html?rev=1785705&r1=1785704&r2=1785705&view=diff
==============================================================================
--- openwebbeans/cms-site/trunk/content/meecrowave/meecrowave-core/configuration.html (original)
+++ openwebbeans/cms-site/trunk/content/meecrowave/meecrowave-core/configuration.html Mon
Mar  6 17:42:44 2017
@@ -131,6 +131,10 @@
 <td class="tableblock halign-left valign-top"><p class="tableblock">HTTPS port</p></td>
 </tr>
 <tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">injectServletContainerInitializer</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Should ServletContainerInitialize
support injections.</p></td>
+</tr>
+<tr>
 <td class="tableblock halign-left valign-top"><p class="tableblock">java9SkipWorkarounds</p></td>
 <td class="tableblock halign-left valign-top"><p class="tableblock">Should the
java9 workarounds be skipped, default to false if on java 9</p></td>
 </tr>
@@ -299,6 +303,10 @@
 <td class="tableblock halign-left valign-top"><p class="tableblock">Temporary
directory</p></td>
 </tr>
 <tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">tomcatAccessLogPattern</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Activates
and configure the access log valve. Value example: '%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'</p></td>
+</tr>
+<tr>
 <td class="tableblock halign-left valign-top"><p class="tableblock">tomcatAutoSetup</p></td>
 <td class="tableblock halign-left valign-top"><p class="tableblock">Add default
servlet</p></td>
 </tr>
@@ -462,6 +470,53 @@ configuration which is overriden by stan
 </div>
 </div>
 </div>
+<div class="sect1">
+<h2 id="_passwords_secrets">Passwords/Secrets</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p>For the configuration requiring to be ciphered you can implement <code>org.apache.meecrowave.service.ValueTransformer</code>:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code>public class MyTransformer implements
ValueTransformer {
+    @Override
+    public String name() {
+        return "mine";
+    }
+
+    @Override
+    public String apply(final String encodedPassword) {
+        return ....;
+    }
+}</code></pre>
+</div>
+</div>
+<div class="admonitionblock note">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-note" title="Note"></i>
+</td>
+<td class="content">
+this code being executed before the container starts you can&#8217;t use CDI there.
+</td>
+</tr>
+</table>
+</div>
+<div class="paragraph">
+<p>To register your implementation just put the fully qualified name of your transformer
in <code>META-INF/services/org.apache.meecrowave.service.ValueTransformer</code>.</p>
+</div>
+<div class="paragraph">
+<p>Then to use it set the value to <code>decode:mine:encodedvalue</code>.
General pattern is: <code>decode:&lt;transformer name&gt;:&lt;value before
decryption&gt;</code>.</p>
+</div>
+<div class="paragraph">
+<p>Note that by default the same ciphering algorithm than in TomEE is available (Static3DES).</p>
+</div>
+<div class="paragraph">
+<p>This syntax is usable on the command line and in <code>meecrowave.properties</code>.</p>
+</div>
+</div>
+</div>
             </section><!--//doc-section-->
 
 



Mime
View raw message