getTokenByDate()
getTokenByDate() API returns up to 10,000 tokens created before the specified date.
Request URL
http://localhost:8080/tmrest/SafeNetTokenManager/getTokenByDate
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. |
ISODate | The date in ISO format. |
tableName | This is the Token Vault name and it must be in CAPITAL LETTERS. |
customData (optional) | The customer-specific data associated with each plaintext value. |
Note
For MySQL, if the customData parameter is null or empty, then the getTokenByDate() API returns results for all customData values in the token vault.
Returned Values
String array of tokens.
Example
{
"naeUser":"jit",
"naePassword":"xxxxxxxx",
"dbUser":"sa",
"dbPassword":"xxxxxxxx",
"tableName":"test",
"ISODate":"2015-02-27T00:01:28+0530"
}
Result
{
tokens: [7]
0:"7325549042343"
1:"86328981623434"
2:"30692004373434"
3:"24957973434"
4:"20461765434"
5:"7283398l434"
6:"390016vbl434"
}