Creating an instance using user exit credentials as Object for Azure Data lake storage

Create a CDC Replication instance to return credentials as Object using user exit. For Azure connection Object must be extended by com.azure.core.credential.TokenCredential.

User exit returns the following parameters:
  • EXTERNAL_CREDENTIAL - Utilized to define the credentials as an object in the map. Subsequently, CDC uses the Credentials Object to establish a connection to the database.
  • DURATION_IN_SECONDS - Allows the user exit to be re-executed to retrieve the credentials within the specified time frame. New credentials are obtained by CDC through the re-execution of the User exit. These credentials can be used if the credentials expire within a certain time frame or during password rotation.
Note: The duration must be specified in seconds.

The object is only loaded once in the cache. CDC does not re-execute the user exit if the DURATION_IN_SECONDS parameter is empty. The user exit must also be in charge of regenerating the credentials to correspond with the generated credentials time frame if Duration is added to reload the credentials.

Sample user exit

ExternalCredentialStorageAzureUserExitAPISample—Implements a credentials user exit for connecting to Azure.