Masking Headers Data

You can define the headers for masking using the <MaskHeader> tag in the log policy XML file. This table explains the field names for masking the headers data in a request.

Parameters For Masking Headers
Parameter Description
HeaderName Specifies the name of the header to be masked.

Example of Headers Data for Masking

 
<MaskHeader>
    <HeaderName>client-ip</HeaderName>
    <HeaderName>content-type</HeaderName> 
</MaskHeader> 
		   
		

Example Header Policy

You can define a P1 policy with x as masking character. When this policy is applied for a facade operation, TIBCO API Exchange Gateway masks the value of content-type header in the request depending on the stage of the transaction pipeline processing.

 
<Name>P1</Name>
	<MaskPolicy>
			<MaskChar>x</MaskChar>
			<MaskHeader>
			<HeaderName>content-type</HeaderName>
</MaskHeader>