Package org.apache.camel.util
Class SensitiveUtils
- java.lang.Object
-
- org.apache.camel.util.SensitiveUtils
-
public final class SensitiveUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
containsSensitive(String text)
Whether the given configuration property contains a sensitive key (such as password, accesstoken, etc.)static Set<String>
getSensitiveKeys()
All the sensitive keys (unmodifiable) in lower-casestatic String
getSensitivePattern()
All the sensitive keys (unmodifiable) in lower-case for regular expression matching
-
-
-
Method Detail
-
getSensitiveKeys
public static Set<String> getSensitiveKeys()
All the sensitive keys (unmodifiable) in lower-case
-
getSensitivePattern
public static String getSensitivePattern()
All the sensitive keys (unmodifiable) in lower-case for regular expression matching
-
containsSensitive
public static boolean containsSensitive(String text)
Whether the given configuration property contains a sensitive key (such as password, accesstoken, etc.)- Parameters:
text
- the configuration property- Returns:
- true if sensitive, false otherwise
-
-