updateTokenProperty()
updateTokenProperty() API updates the tokenProperty of a token or token(s). This method is also supported in the batch mode.
Request URL
Url: http://localhost:8080/tmrest/SafeNetTokenManager/updateTokenProperty
Url for Batch: http://localhost:8080/tmrest/SafeNetTokenManager/batch/updateTokenProperty
Method
POST
Request Parameters
Parameters | Descriptions |
---|---|
naeUser | A Key Manager user with access to the AES and HMAC keys. |
naePassword | Key Manager user’s password. |
dbUser (optional) | A database user with access to the token table. |
dbPassword (optional) | Database user’s password. |
token(s) | Token(s) for which tokenProperty is to be updated. |
tableName | This is the Token Vault name and it must be in CAPITAL LETTERS. |
tokenProperty | A 16 bits alphanumeric string, attached to the token to help search and purge the tokens. |
customTokenProperty | A string of up to 255 characters including special characters. |
Note
Either tokenProperty, customTokenProperty or both, must be used.
Example
{
"naeUser":"jit",
"naePassword":"xxxxxxxx",
"dbUser":"sa",
"dbPassword":"xxxxxxxx",
"tableName":"TEST_MULTISITE",
"tokens":["81335060088602941","19017940876834126"],
"tokenProperty":["828****333331441","828****333331442"],
"customTokenProperty":["abc123","xyz897"]
}
Result
[1]
0:
{
siteID: 0
rowsUpdated: 2,
status: "SUCCESS",
errorMessage: "N/A"
}