Class Redactor


  • public class Redactor
    extends Object
    Redacts sensitive information from messages based on regex patterns.
    Since:
    2021.40
    • Field Detail

      • AWS_KEY_PATTERN

        protected static final Pattern AWS_KEY_PATTERN
      • CREDIT_CARD_PATTERN

        protected static final Pattern CREDIT_CARD_PATTERN
      • GCP_KEY_PATTERN

        protected static final Pattern GCP_KEY_PATTERN
      • KEYWORD_PATTERN

        protected static final Pattern KEYWORD_PATTERN
      • AUTH_PATTERN

        protected static final Pattern AUTH_PATTERN
    • Constructor Detail

      • Redactor

        public Redactor()
    • Method Detail

      • maskSensitive

        public String maskSensitive​(String msg)
      • isValidCreditCard

        public boolean isValidCreditCard​(String card)