Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 24732200C2F for ; Mon, 6 Mar 2017 18:42:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1FC39160B8B; Mon, 6 Mar 2017 17:42:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 664EA160B81 for ; Mon, 6 Mar 2017 18:42:47 +0100 (CET) Received: (qmail 94091 invoked by uid 500); 6 Mar 2017 17:42:46 -0000 Mailing-List: contact commits-help@openwebbeans.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openwebbeans.apache.org Delivered-To: mailing list commits@openwebbeans.apache.org Received: (qmail 94077 invoked by uid 99); 6 Mar 2017 17:42:46 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Mar 2017 17:42:46 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id A4C983A1388 for ; Mon, 6 Mar 2017 17:42:45 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@openwebbeans.apache.org From: rmannibucau@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170306174245.A4C983A1388@svn01-us-west.apache.org> archived-at: Mon, 06 Mar 2017 17:42:48 -0000 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 @@

HTTPS port

+

injectServletContainerInitializer

+

Should ServletContainerInitialize support injections.

+ +

java9SkipWorkarounds

Should the java9 workarounds be skipped, default to false if on java 9

@@ -299,6 +303,10 @@

Temporary directory

+

tomcatAccessLogPattern

+

Activates and configure the access log valve. Value example: '%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'

+ +

tomcatAutoSetup

Add default servlet

@@ -462,6 +470,53 @@ configuration which is overriden by stan +
+

Passwords/Secrets

+
+
+

For the configuration requiring to be ciphered you can implement org.apache.meecrowave.service.ValueTransformer:

+
+
+
+
public class MyTransformer implements ValueTransformer {
+    @Override
+    public String name() {
+        return "mine";
+    }
+
+    @Override
+    public String apply(final String encodedPassword) {
+        return ....;
+    }
+}
+
+
+
+ + + + + +
+ + +this code being executed before the container starts you can’t use CDI there. +
+
+
+

To register your implementation just put the fully qualified name of your transformer in META-INF/services/org.apache.meecrowave.service.ValueTransformer.

+
+
+

Then to use it set the value to decode:mine:encodedvalue. General pattern is: decode:<transformer name>:<value before decryption>.

+
+
+

Note that by default the same ciphering algorithm than in TomEE is available (Static3DES).

+
+
+

This syntax is usable on the command line and in meecrowave.properties.

+
+
+