Skip to content

Conversation

@johnnypham
Copy link
Contributor

@johnnypham johnnypham commented Feb 20, 2021

Currently, custom key store providers can only be registered into a global cache at the application level. These changes add a public method to register providers into an instance cache at the connection-level, allowing users to maintain their own set of providers in the same application. This cache takes precedence over the global cache and can be set more than once.

public class SqlConnection
{    
       // Current API: registers into global cache
       public static void RegisterColumnEncryptionKeyStoreProviders(IDictionary<string, SqlColumnEncryptionKeyStoreProvider> customProviders);

       // Added API: registers into instance cache
       public void RegisterColumnEncryptionKeyStoreProvidersOnConnection(IDictionary<string, SqlColumnEncryptionKeyStoreProvider> customProviders);
}

Base automatically changed from master to main March 15, 2021 17:54
@cheenamalhotra cheenamalhotra added this to the 3.0.0-preview2 milestone Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Public API 🆕 Issues/PRs that introduce new APIs to the driver.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants