getDisabledTokens()
getDisabledTokens() API gets an array of disabled tokens up to 10,000.
Syntax
public String[] getDisabledTokens (Calendar startDate , Calendar endDate , String tableName , int columnIdentifier)
Request Parameters
Parameters | Data Types | Descriptions |
---|---|---|
Calendar startDate | calendar | A valid start date from which the disabled tokens are required. If this parameter is null, getDisabledTokens() method returns disabled tokens since the standard base time known as the epoch, namely January 1, 1970. |
Calendar endDate | calendar | A valid end date until which the disabled tokens are required. If this parameter is null, getDisabledTokens() method returns the disabled tokens so far. |
String tableName | string | The token vault from which the disabled tokens are fetched. The table name must be in CAPITAL LETTERS. |
columnIdentifier | integer | Fetch tokens based on their creation date or last access date. |
Returned Values
Returned array of disabled tokens.
Exception
Throws TokenException
if:
The table name is missing or invalid.
There is a problem with connecting or using the Key Manager or the database.
Example
ts.getDisabledTokens(null, null, "TOKEN_VAULT", TokenService.CREATION_DATE)
Disabled tokens from January 1, 1970 to date are returned.