Class CreditCardValueMasker

java.lang.Object
com.helixframework.logstash.mask.internal.CreditCardValueMasker
All Implemented Interfaces:
net.logstash.logback.mask.ValueMasker

public class CreditCardValueMasker extends Object implements net.logstash.logback.mask.ValueMasker
ValueMasker that masks credit card numbers.
  • Field Details

    • PROP_MASK

      public static final String PROP_MASK
      Property to set the mask string.
      See Also:
    • PROP_MASK_LASTFOUR

      public static final String PROP_MASK_LASTFOUR
      Property to enable masking of everything but the last four digits.
      See Also:
    • PROP_MASK_STRICT

      public static final String 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

      public static final String 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

      public CreditCardValueMasker(Properties props)
      Creates a new instance of CreditCardValueMasker.
      Parameters:
      props - helix-logstash.properties
  • Method Details

    • mask

      public Object mask(com.fasterxml.jackson.core.JsonStreamContext context, Object value)
      Specified by:
      mask in interface net.logstash.logback.mask.ValueMasker