This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 9a267dd34562a0db8b8c36a3ff6a43a144d32dfc Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Sun Mar 14 12:27:46 2021 +0100 Polished --- .../src/main/java/org/apache/camel/util/SensitiveUtils.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/camel-util/src/main/java/org/apache/camel/util/SensitiveUtils.java b/core/camel-util/src/main/java/org/apache/camel/util/SensitiveUtils.java index 2fc3f61..3fd7bc8 100644 --- a/core/camel-util/src/main/java/org/apache/camel/util/SensitiveUtils.java +++ b/core/camel-util/src/main/java/org/apache/camel/util/SensitiveUtils.java @@ -92,6 +92,13 @@ public final class SensitiveUtils { private SensitiveUtils() { } + /** + * Whether the given configuration property contains a sensitive + * a sensitive key (such as password, accesstoken, etc.) + * + * @param text the configuration property + * @return true if sensitive, false otherwise + */ public static boolean containsSensitive(String text) { int lastPeriod = text.lastIndexOf('.'); if (lastPeriod >= 0) {