updateTokens()
Used for the upgrade process: replaces temporary tokens (created for the upgrade process) with the original tokens obtained from the application table via getBaselineTokenData() function.
As part of the upgrade process, new (temporary) tokens are generated. This function is responsible for replacing the temporary tokens with the original tokens obtained from the application table via getBaselineTokenData() function.
Syntax
public void updateTokens (Connection[] conn, PreparedStatement[] stmt, String vaultName, String[] oldTokens, String[] newTokens) throws SQLException
Request Parameters
Parameter | Type | Description |
---|---|---|
conn[] | Array | Array where 0th element contains database connection. If the 0th argument of this array of connections to the database is null, the function must create new connection to the database and store it in the 0th element of this array. |
stmt[] | Array | Array where 0th element contains statement handle used to extract rows from the database. If the 0th element of this array of database statement handles is null, the function must create a new prepared statement as described above and store it in the 0th element of this array. |
vaultName | String | Name of the token vault table to be updated. |
oldTokens[] | String array | Array of existing tokens obtained from the application table. |
newTokens[] | String array | Array of temporary tokens generated by the upgrade process. |