Class Redactor

java.lang.Object
org.nuxeo.log4j.Redactor

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

    • REDACTED_PLACE_HOLDER

      public static final String REDACTED_PLACE_HOLDER
      Since:
      2023
      See Also:
    • 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 Details

    • Redactor

      public Redactor()
  • Method Details

    • maskSensitive

      public String maskSensitive(String msg)
    • isValidCreditCard

      public boolean isValidCreditCard(String card)