Class TinValueMasker

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

public class TinValueMasker extends Object implements net.logstash.logback.mask.ValueMasker
ValueMasker that masks Tax Identification Numbers (SSNs).
  • 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 last 4 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 (i.e. TINs contained within larger strings will not be masked).
      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. (Defaults to 'message')
      See Also:
  • Constructor Details

    • TinValueMasker

      public TinValueMasker(Properties props)
      Creates a new instance of TinValueMasker.
      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