createTokenFormatWithRegEx()
createTokenFormatWithRegEx() creates a new token format which can be used with the insertToken method.
Request URL
http://localhost:8080/tmrest/SafeNetTokenManager/createTokenFormatWithRegEx
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. |
description | The description of the method. |
splitter | Splits the input into groups. |
splicer | Combines groups into resulting token. |
dbHost (optional) | The database host name. |
dbPort (optional) | The database port. |
dbName (optional) | The database name. |
Note
The dbHost, dbPort, and dbName parameters are supported for MySQL database only.
Returned Values
An integer value which represents the new token format, the value will be greater than 100.
Example
{
"naeUser":"rajesh",
"naePassword":"xxxxxxxx",
"dbUser":"sa",
"dbPassword":"xxxxxxxx",
"description":"tokenFormattest",
"splitter":"(.{3})(.*)(.{4})",
"splicer":"(0 GLOBAL LENGTH=20 LC=PASS)(1 KEEP)(2 RANDOM)(3 KEEP)"
}
Example with Database Properties
{
"naeUser":"rajesh",
"naePassword":"xxxxxxxx",
"dbUser":"sa",
"dbPassword":"xxxxxxxx",
"dbHost":"10.164.14.111",
"dbPort":"3306",
"dbName":"test"
"description":"tokenFormattest",
"splitter":"(.{3})(.*)(.{4})",
"splicer":"(0 GLOBAL LENGTH=20 LC=PASS)(1 KEEP)(2 RANDOM)(3 KEEP)"
}
Result
{
format: 104
}