Exemplo n.º 1
0
 /// <summary>
 ///   Display the field after applying the PCI-DSS PAN mask, used in traces
 /// </summary>
 /// <param name = "prefix">Prefix to display before the field</param>
 /// <param name = "fieldNumber">Field number</param>
 /// <param name = "value">field contents</param>
 /// <returns>formatted string representing the field</returns>
 public string Display(string prefix, int fieldNumber, string value)
 {
     return(_decoratedFieldDescriptor.Display(prefix, fieldNumber, Utils.MaskPan(value)));
 }
Exemplo n.º 2
0
 /// <summary>
 ///   Gets a representation of the field as a string
 /// </summary>
 /// <param name = "prefix">Prefix to add onto the string</param>
 /// <returns>String representation of the field</returns>
 public string ToString(string prefix)
 {
     return(_fieldDescriptor.Display(prefix, FieldNumber, Value));
 }