Class SensitiveUtils

    • Method Detail

      • 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