getDisabledTokens()
getDisabledTokens() gets an array of disabled tokens up to 10000.
Syntax
public getDisabledTokens(long long startDate,long long endDate, String table,int searchCriteria)
Request Parameters
Parameters | Data Types | Descriptions |
---|---|---|
startDate | long long | Date from which the disable tokens are required. startDate should be specified in milliseconds since epoch (start of day, Jan 1,1970). If this parameter is set to 0, the getDisabledTokens()method will return the tokens since the epoch. |
endDate | long long | Date till which the disable tokens are required. endDate should be specified in milliseconds since epoch. If this parameter is set to 0, the getDisabledTokens()method will return the tokens so far. |
table | string | The token vault from which the disabled tokens are to be fetched. The table name must be in CAPITAL LETTERS. |
searchCriteria | integer | Fetch tokens based on their creation date or last access date. |
Returned Values
An array of the disabled tokens.
Exception
Passes an exception if the table is missing or invalid.
Example
getDisabledTokens(startDate, endDate, dbTable, TokenService.CREATION_DATE);