InsertBatchWithCustomData()
InsertBatchWithCustomData() encrypts an array of plaintext values, create tokens, and insert them into the token vault.
Syntax
public String[] InsertBatchWithCustomData (String naeUser, String naePassword, String dbUser, String dbPswd, String tableName, String[] values, String[] customData, Integer format, 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. |
tableName | string | This is the Token Vault name and it must be in CAPITAL LETTERS. |
values | string[] | String array of plaintext data to be tokenized. |
customData | string[] | An array of customData associated with the plaintext values. |
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, be sure to use the correct integer. For more information about the available formats, see [Using Token Formats]. |
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.