Skip to main content
Skip table of contents

Sensitive Data Masking

The Sensitive Data Masking feature allows message fields to be designated as holding sensitive data by adding the attribute "sensitive" : true to the element describing the field. Fields so designated are masked in the diagnostic and HTTP logs and in memory. For example, a request or response containing the following schema structure:

JS
"CardHolderData": {
  "elements": [
    {
      "name": "name",
      "type": "string"
	  "size": 32
    },
    {
      "name": "cardNumber",
      "type": "string",
      "size": 32,
	  "sensitive": true
    }
  ]
}

Would appear in the diagnostic log as shown in the following fragments:

JS
{
	"CardHolderData": {
		"name" : "John Doe",
        "cardNumber" : "****************"
	}
}
TEXT
0x00000000: 4a6f 686e 2044 6f65 6800 0000 0000 0000  00000000: John Doe........
0x00000010: 0000 0000 0000 0000 0000 0000 0000 0000  00000016: ................
0x00000020: 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a  00000032: ****************
0x00000030: 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a  00000048: ****************
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.