CreateMaskingFormat()
Creates new masking formats that can be used with the get() methods to mask plaintext values.
Syntax
public int CreateMaskingFormat (String naeUser, String naePassword, String dbUser, String dbPswd, int showFirst, int showLast, String maskChar)
Request Parameters
Parameters | Data Types | Descriptions |
---|---|---|
naeUser | String | The Key Manager user with access to the AES and HMAC keys. |
naePassword | String | The Key Manager user’s password. |
dbUser | String | The database user with access to the token table. |
dbPswd | String | The database user’s password. |
showFirst | Int | The number of characters to be displayed at the beginning of the value. |
showLast | Int | The number of characters to be displayed at the end of the value. |
maskChar | String | Any single character (except blank space) that will be used as masking character for the remaining characters of the value. The default masking character is X. |
Returned Value
Returned Value | Description |
---|---|
Integer | Represents the new masking format ID. This value is greater than 100. |
Example
CreateMaskingFormat(3 2,"#")
In this example, a masking format is generated with showFirst = 3
, showLast = 2
, and maskChar = "#"
. The resultant format ID masks 1234567890
to 123#####90
.