setTokenVaultInfo()
Saves token vault information into metadata tables.
This function creates its own database connection and closes it when it is complete. Special Instructions: Calling this function when the “KeyRotationDate” parameter is not null will indicate that it is called by the key rotation process.
When this parameter is not null:
Set to "START" to request this function to log the current time as the start of key rotation.
Set to "STOP" to request this function to set the KEYROTATIONDATE to be set to NULL to indicate that the key rotation is complete.
Note: When this parameter is not null, no other columns in the metadata tables are updated. When this parameter is null, it indicates a request for this function to create a new token vault information record. Token vault information fields, such as keys and names, are not updated during normal operations (only during upgrade or key rotation).
Syntax
public void setTokenVaultInfo (String tableName, HashMap<String, String> info) throws SQLException
Request Parameters
Parameter | Type | Description |
---|---|---|
tableName | String | Name of the token vault. |
info | String | It is an object containing token vault information to be set; the following string pairs are required: • HMACKeyName - Name of the key used for hash operations.• CryptoKeyName - Name of the key used for crypto operations.The following fields are optional: • SchemaName - Name of the schema/user that contains metadata tables.• KeyRotationDate - Date/time when key rotation started.• TokenVaultName - Name of the token vault table, if different than the name of the token vault. |