disableToken()
disableToken() API disables the specified tokens from a token vault.
Syntax
public SiteBean[] disableToken(String[] tokens, String tableName)
Request Parameters
Parameters | Data Types | Descriptions |
---|---|---|
tokens | string[] | An array of tokens to be disabled. |
tableName | string | This is the Token Vault name and it must be in CAPITAL LETTERS. |
Returned values
Returns the array of SiteBean. Refer to SiteBean Class for more details.
Exception
Throws TokenException
if the table name is missing or the token is null or invalid.
Example
String[] tokens={"1234567890123456","378287283787323"};
disableToken(tokens, "CREDIT_CARD_NUMBERS")
1234567890123456
and 378287283787323
tokens are disabled.