deleteToken()
deleteToken() API deletes the specified tokens and returns the exact number of tokens deleted. This method is also supported in the batch mode.
Request URL
Url:http://localhost:8080/tmrest/SafeNetTokenManager/deleteToken
Url for Batch:http://localhost:8080/tmrest/SafeNetTokenManager/batch/deleteToken
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. |
token(s) | A token or an array of tokens that corresponds to an encrypted value(s). |
tableName | This is the Token Vault name and it must be in CAPITAL LETTERS. |
Example
{
"naeUser":"jit",
"naePassword":"xxxxxxxx",
"dbUser":"sa",
"dbPassword":"xxxxxxxx",
"tokens": ["25863143853333","4302578582222","6627979014444"],
"tableName":"test"
}
Result
[1]
0:{
siteID: 0
rowsUpdated: 3
status: "SUCCESS"
errorMessage: "N/A"
}