InsertIrreversibleToken()
Encrypts a plaintext value (or array of values), create a token (or tokens), insert into the token vault/token vaults, return the tokens, and supports Unicode (mulitbyte format) tokens. Also, the tokens generated using insertIrreversibleToken()
method will not return the plaintext when passed in the get()
method. The method will instead return the string value Irreversible Token.
Note
If the plaintext value (along with the custom data) passed in has already been tokenized using insert()
method, this method simply returns the existing token. Such tokens are not irreversible tokens.
Syntax
public TmResult InsertIrreversibleToken(String naeUser, String naePassword, String dbUser, String dbPswd, String tableName, String[] values, String[] customData, int format, Boolean luhnCheck, Boolean saveExceptions, String[] tokenProperty, String[] customTokenProperty)
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. |
tableName | String | The token table. The name must be in CAPITAL LETTERS. |
values | String[] | Data to be tokenized. |
customData | String[] | Data to be tokenized. |
format | Int | 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. |
luhnCheck | Boolean | Indicates if the value must pass a luhnCheck (true) or if there is no requirement (false). Token formats created using the createNewFormat() method may have one of the following three luhnCheck rules:1. must fail test 2. no requirement 3. must pass test The priority of the luhnCheck boolean in insert() and the luhnCheck integer in createNewFormat() vary depending on their values. |
saveExceptions | Boolean | Boolean value. When set to true, the Smart Check functionality is enabled. |
tokenProperty | String[] | The tokenProperty[] associated with the tokens to be created. |
customTokenProperty | String[] | The customTokenProperty[] associated with the tokens to be created. |
Returned Value
Returned Value | Description |
---|---|
TmResult | Gives the output tokens, status and error details, if any. |