InsertBatchWithMultipleVault()
InsertBatchWithMultipleVault() creates tokens of plaintext values in a batch and insert them into the multiple token vaults (specified tokens into the specified token vault).
Syntax
public String[] InsertBatchWithMultipleVault(String naeUser, String naePassword, String dbUser, String dbPswd, String tableName[], String[] values, Integer format[], Boolean luhnCheck, String tokenProp[], String customTokenProperty[])
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[] | The token tables. The name must be in CAPITAL LETTERS. |
values | string[] | String array of the plaintext data to be tokenized. Notes: • The plaintext values in a particular string in the arrays are to be comma separated. • For example, “1234,8965,abcd”,”1234,5689,25689” represents two arrays of plaintext values to be tokenized and inserted into token vaults V1 and V2 respectively. Tokenized values of 1234,8965 and abcd will be inserted into the token vault V1 and tokenized values of 1234,5689 and 25689 will be inserted into the token vault V2. |
format[] | integer[] | The predefined token formats or formats 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 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. |
tokenProp[] | string[] | indicates the tokenProperty of the tokens to be created. See Features for more details on tokenProperty. |
customTokenProperty[] | string[] | indicates the customTokenProperty of the tokens to be created. |
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.