deleteTokenByTokenProperty()
deleteTokenByTokenProperty() API deletes the tokens on the basis of tokenProperty, and return the exact number of tokens deleted.
Request URL
Url:http://localhost:8080/tmrest/SafeNetTokenManager/deleteTokenByTokenProperty
Method
DELETE
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. |
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 to be used.
Example
{
"naeUser":"admin",
"naePassword":"admin",
"dbUser":"user",
"dbPassword":"admin",
"tableName":"TABLE1",
"customTokenProperty":"1234567890987699"
}
Result
[1]
0:{
siteID: 0
status: "SUCCESS"
rowsUpdated: 0
errorMessage: "N/A"
}