Class CreditCardValueMasker
java.lang.Object
com.helixframework.logstash.mask.internal.CreditCardValueMasker
- All Implemented Interfaces:
net.logstash.logback.mask.ValueMasker
ValueMasker that masks credit card numbers.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty to set the mask string.static final StringProperty to enable masking of everything but the last four digits.static final StringProperty that specifies the context name of the log message field in the logstash json object.static final StringProperty to enable strict regex matching. -
Constructor Summary
ConstructorsConstructorDescriptionCreditCardValueMasker(Properties props) Creates a new instance ofCreditCardValueMasker. -
Method Summary
-
Field Details
-
PROP_MASK
Property to set the mask string.- See Also:
-
PROP_MASK_LASTFOUR
Property to enable masking of everything but the last four digits.- See Also:
-
PROP_MASK_STRICT
Property to enable strict regex matching. If enabled, only exact matches will be masked in non-message fields.- See Also:
-
PROP_MASK_MESSAGE_FIELD_NAME
Property that specifies the context name of the log message field in the logstash json object.- See Also:
-
-
Constructor Details
-
CreditCardValueMasker
Creates a new instance ofCreditCardValueMasker.- Parameters:
props- helix-logstash.properties
-
-
Method Details
-
mask
- Specified by:
maskin interfacenet.logstash.logback.mask.ValueMasker
-