getCustomTokenPropertyByValue()
getCustomTokenPropertyByValue() returns an array of customTokenProperty for the specified plaintext value(s) and custom data. If the customTokenProperty exists, it is returned, else the API returns the null value.
Request URL
http://localhost:8080/tmrest/SafeNetTokenManager/getCustomTokenPropertyByValue
Method
POST
Request Parameters
Parameters | Descriptions |
---|---|
naeUser | A Key Manager user with access to the AES and HMAC keys. |
naePassword | The Key Manager user’s password. |
dbUser (optional) | A database user with access to the token table. |
dbPassword (optional) | The database user’s password. |
values | An array of plaintext value(s). |
customData | An array of custom data. |
tableName | This is the Token Vault name and it must be in CAPITAL LETTERS. |
Note
For MySQL, if the customData parameter is null or empty, then the getCustomTokenPropertyByValue() API returns results for all the customData values in token vault.
Returned Values
String array of customTokenProperty.
Example
{
"naeUser":"admin",
"naePassword":"xxxx",
"dbUser":"user",
"dbPassword":"xxxx",
"values":["7385035416","7527608087","7583710920"],
"customData":["abc","efg","hij"],
"tableName":"TEST_TABLE"
}
Result
{
customTokenProperty: [3]
0:"abc123testproperty"
1:"abc123testproperty1"
2:"abc123testproperty2"
}