Masking Data in XML Payloads
You can mask the data in the XML format payloads using the <XMLMaskFields> tag in the log policy XML file. This table explains the field names for masking the data in an XML payload.
Parameter | Description |
---|---|
MaskFieldPath | Specifies the XPath for the field. The value of this field is masked. |
RemoveField |
This is a Boolean field that indicates if the field specified by MaskFieldPath tag is logged or not. The possible values are Y and N. |
StartIndex | Specifies an Index of the field value at which masking starts. If the RemoveField field is set to Y, this is ignored. |
EndIndex | Specifies an index of the field value at which masking ends. Specifies an Index of the field value at which masking starts. If the RemoveField field is set to Y, this is ignored. |
LengthOfClearAtStart | Specifies the number of characters to be left clear at the beginning. Specifies an index of the field value at which masking starts. If the RemoveField field is set to Y, this is ignored. |
LengthOfClearAtEnd | Specifies the number of characters to be left clear at the end. Specifies an index of the field value at which masking starts. If the RemoveField field is set to Y, this is ignored. |
Example of Data Masking in XML Payload
<XMLMaskFields> <XMLMaskField> <MaskFieldPath>/soapenv:Envelope/soapenv:Body/book:Author</MaskFieldPath> <RemoveField>Y</RemoveField> <StartIndex>6</StartIndex> <EndIndex>12</EndIndex> <LengthOfClearAtStart>4</LengthOfClearAtStart> <LengthOfClearAtEnd>6</LengthOfClearAtEnd> </XMLMaskField> <XMLMaskField> <MaskFieldPath>BookStore/Book/ISBN</MaskFieldPath> <RemoveField>Y</RemoveField> <StartIndex>3</StartIndex> <EndIndex>9</EndIndex> <LengthOfClearAtStart>4</LengthOfClearAtStart> <LengthOfClearAtEnd>6</LengthOfClearAtEnd> </XMLMaskField> </XMLMaskFields>
Copyright © Cloud Software Group, Inc. All rights reserved.