tokenizeWithErrors()
Same operation as the tokenize function, but does not throw exceptions; saves error information.
This function performs the same operation as the tokenize function, except that it does not throw exceptions when errors occur; instead it saves error information into the result object.
Syntax
public void tokenizeWithErrors (Connection conn, String tableName, Integer tokenType, String [] metaData, byte [][] cipherText, byte [][] mac, TmResult result) throws SQLException
Request Parameters
Parameter | Type | Description |
---|---|---|
conn | String | The database connection. |
tableName | String | Name of the token vault table. |
tokenType | int | Type of token (sequential or other). This value is set to 2 for sequential tokens. Any other value indicates non-sequential value. No special determination must be made depending on the value of this parameter, if it is set to any value other than 2. |
metaData | String array | Custom data associated with tokens. |
cipherText | Array | Encrypted clear text values associated with tokens. |
mac | Array | Hash values associated with tokens. |
result | String | • On input, result.output contains input candidate tokens.• On output, result.output contains output tokens as follows:• Tokens from the token vaults, if the values with the same hash are found. • Input candidate tokens, if the new tokens have been created. • Null values, if collision on token values have been detected. |