The mask credit card numbers from all providers policy will determine the issuer of the CCN and mask the number according to format of the issuer.
This policy is available with the functions CCNMask.randomCCN() and CCNMask.maskCCN().
To generate a random value not based on an input value, use the function: CCNMask.randomCCN()
To generate a value based on an input value, use the function: CCNMask.maskCCN(record.getItem('<arg.inputAttribute>'))
For example, to generate a random value based on an input value, use the following syntax:
CCNMask.maskCCN(record.getItem('/DEMO/ORDERS/CCN'))
To generate a value based on the input value and mask an additional attribute in which all instances of the input value are masked, use the function: CCNMask.maskCCN(record.getItem('<arg.inputAttribute>'), '<arg.additionalAttribute>')
For example, to generate a value based on the CCN attribute and mask additional instances of the input value found in the CUST_INFO attribute, use the following syntax: CCNMask.maskCCN(record.getItem('/DEMO/CUSTOMERS/CCN'), '/DEMO/CUSTOMERS/CUST_INFO')
Argument | Description |
---|---|
inputAttribute | The attribute containing the input value to mask. |
additionalAttribute | The additional attribute in which all instances of the input value are masked. |