createMaskingFormat()
createMaskingFormat() creates a new masking format which can be used with the get() methods to mask the plaintext values.
Request URL
http://localhost:8080/tmrest/SafeNetTokenManager/createMaskingFormat
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. |
dbHost (optional) | The database host name. |
dbPort (optional) | The database port. |
dbName (optional) | The database name. |
showFirst | The number of characters to be displayed at the beginning of the value. |
showLast | The number of characters to be displayed at the end of the value. |
maskChar (optional) | Any single character (except blank space) will be used as the masking character for the remaining characters of the value. The default masking character is X. |
Note
The dbHost, dbPort, and dbName parameters are supported for MySQL database only.
Returned Values
An integer value which represents the new masking format ID, the value will be greater than 100.
Example
{
"naeUser":"rajesh",
"naePassword":"xxxxxxxx",
"dbUser":"sa",
"dbPassword":"xxxxxxxx",
"showFirst":3,
"showLast":2,
"maskChar":"@",
}
Example with Database Properties
{
"naeUser":"rajesh",
"naePassword":"xxxxxxxx",
"dbUser":"sa",
"dbPassword":"xxxxxxxx",
"dbHost":"10.164.14.111",
"dbPort":"3306",
"dbName":"test"
"showFirst":3,
"showLast":2,
"maskChar":"@"
}
Result
{
format: 109
}