disableToken()
disableToken() API disables the specified tokens from the token vault.
Request URL
http://localhost:8080/tmrest/SafeNetTokenManager/batch/disableToken
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. |
tokens | An array of tokens to be disabled from the token vault. |
tableName | This is the Token Vault name from which the specified tokens to be disabled and it must be in CAPITAL LETTERS. |
Tip
To delete a large number of tokens (over 10,000), it may be necessary to use a method such as getTokenByDate, which returns an array of up to 10,000 tokens. You can pass this array to deleteToken, and then loop through the iterations of getTokenByDate and deleteToken, until the required deletions have been completed.
Example
{
"naeUser":"jit",
"naePassword":"xxxxxxxx",
"dbUser":"sa",
"dbPassword":"xxxxxxxx",
"tokens": ["25863143853333","4302578582222"],
"tableName":"test"
}
Result
[{
"siteID": 0,
"rowsUpdated": 2,
"status": "SUCCESS",
"errorMessage": "N/A"
}]