create()
Creates database objects for the token vault. This function must create its own database connection and close it when done.
In addition to creating the token vault, this function should create SFNT_KEY_TABLE
and SFNT_TOKEN_FORMAT
table, if those two tables do not already exist. The format of those two tables should conform to the format used by the latest version of the CT-V.
Syntax
public void create(HashMap<String, String> info) throws SQLException
Request Parameters
"info" represents a collection of token vault information parameters that enable the API functions to create the token vault. These string pairs (in name, value sequence) are listed below:
Parameter | Type | Description |
---|---|---|
TokenVaultMasterTableName | String | Set to SFNT_KEY_TABLE |
TokenFormatTableName | String | Set to SFNT_TOKEN_FORMAT |
TokenVaultTableName | String | Name of the token vault to be created. |
TokenVaultSchemaName | String | Schema or database in which the token vault is to be created. |
IsTokenSequential | Boolean | true if token vault to store sequential tokens must be created; false otherwise TokenSize , size of the TOKEN column. |
InputDataLength | int | Maximum input data length. |
TokenSize | int | Size of the TOKEN column. |
InputDataLength | int | Maximum input data length. Note: You supply this only if creating sequential tokens, when it defines the size of the sequential tokens. The maximum length is database specific; for example, for MS SQL Server, the maximum length is 19. |
CipherTextLength | int | Maximum length of the CIPHERTEXT column. |
The following parameters may or may not be provided:
Parameter | Type | Description |
---|---|---|
TokenVaultMasterTableDataStorage | String | Data storage specification for SFNT_KEY_TABLE . |
TokenVaultMasterTableIndexStorage | String | Index storage specification for SFNT_KEY_TABLE . |
TokenVaultTableDataStorage | String | Data storage specification for token vault table. |
TokenVaultTableIndexStorage | String | Index storage specification for token vault table. |
Debug | Boolean | true or false - when true is specified, the framework expects the implementation to output diagnostic messages to the console. |