Package org.nuxeo.log4j
Class Redactor
- java.lang.Object
-
- org.nuxeo.log4j.Redactor
-
public class Redactor extends Object
Redacts sensitive information from messages based on regex patterns.- Since:
- 2021.40
-
-
Field Summary
Fields Modifier and Type Field Description protected static Pattern
AUTH_PATTERN
protected static Pattern
AWS_KEY_PATTERN
protected static Pattern
CREDIT_CARD_PATTERN
protected static Pattern
GCP_KEY_PATTERN
protected static Pattern
KEYWORD_PATTERN
static String
REDACTED_PLACE_HOLDER
-
Constructor Summary
Constructors Constructor Description Redactor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValidCreditCard(String card)
String
maskSensitive(String msg)
-
-
-
Field Detail
-
REDACTED_PLACE_HOLDER
public static final String REDACTED_PLACE_HOLDER
- Since:
- 2021.40
- See Also:
- Constant Field Values
-
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
-
-