Mask()
Mask() generates new tokens without storing any data in the Token Vault. There is no CT-V API which can retrieve the original values from the tokens created using the mask() method.
Syntax
public String[] Mask (String naeUser, String naePassword, String dbUser, String dbPswd, String[] values, Integer format, String startToken, Boolean luhnCheck)
Request Parameters
Parameters | Data Types | Descriptions |
---|---|---|
naeUser | string | A Key Manager user with access to the AES and HMAC keys. |
naePassword | string | The Key Manager user’s password. |
dbUser | string | A database user with access to the token table. |
dbPswd | string | The database user’s password. |
values | string[] | Data to be tokenized. |
format | integer | One of the predefined token formats or a format created using CreateNewTokenFormat(). You can use the constant if your application imports com.safenet.token.TokenService. Otherwise, use the correct integer. For more information about the available formats, see [Using Token Formats]. |
startToken | string | The seed value of the generated tokens if the format is SEQUENTIAL_TOKEN. There are two possible values for the startToken parameter: • Null: If null is assigned to startToken parameter, then the length of the token(s) generated is same as that of the length of the first value of the plaintext array. The default start token value is 0111111111...... • Value: If there is a specific value assigned to startToken parameter, it becomes the first token of the generated output. The rest of the tokens are sequentially generated. |
luhnCheck | boolean | boolean indicates if the value must pass a Luhn check (true) or if there is no requirement (false). Token formats created using the createNewFormat() method may have one of three luhnCheck rules. The rules are must fail test, no requirement, and must pass test. |
The priority of the luhnCheck boolean in insert() and the luhnCheck integer in createNewFormat() vary depending on their values, as shown in the following figure:
Returned Values
A string array of the tokens.