getByTokenProperty()
getByTokenProperty() checks on the basis of token property that a token exists for a plaintext value. If the token exists, it is returned, else the API returns the null value.
Request URL
http://localhost:8080/tmrest/SafeNetTokenManager/getByTokenProperty
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. | 
| tableName | This is the Token Vault name and it must be in CAPITAL LETTERS. | 
| tokenProperty | A 16 bits alphanumeric string, attached to the token to help search and purge the tokens. | 
| customTokenProperty | A string of up to 255 characters including special characters. | 
Note
Either tokenProperty, customTokenProperty or both, must be used.
Returned Values
String array of token(s).
Example
{
    "naeUser":"admin",
    "naePassword":"admin",
    "dbUser":"user",
    "dbPassword":"admin",
    "tableName":"TABLE1",
    "tokenProperty":"1234567890987699"
}
Result
{
    tokens: [2]
    0:"0611922916246"
    1:"913289945781517"
}