Mask()
Generates new tokens without storing any data in the token vault.
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 | 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. |
value | String array | 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, be sure to use the correct integer. |
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 any 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 | 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. |
Returned Value
Returned Value | Description |
---|---|
String[] | The tokens. |