|
37 | 37 | <param name="encryptedColumnEncryptionKey"> |
38 | 38 | The encrypted column encryption key. |
39 | 39 | </param> |
| 40 | + <param name="cancellationToken"> |
| 41 | + A token to cancel the asynchronous operation. |
| 42 | + </param> |
40 | 43 | <summary> |
41 | 44 | Decrypts the specified encrypted value of a column encryption key asynchronously. The encrypted value is expected to be encrypted using the column master key with the specified key path and using the specified algorithm. |
42 | 45 | </summary> |
|
71 | 74 | <param name="columnEncryptionKey"> |
72 | 75 | The plaintext column encryption key. |
73 | 76 | </param> |
| 77 | + <param name="cancellationToken"> |
| 78 | + A token to cancel the asynchronous operation. |
| 79 | + </param> |
74 | 80 | <summary> |
75 | 81 | Encrypts a column encryption key asynchronously using the column master key with the specified key path and using the specified algorithm. |
76 | 82 | </summary> |
|
110 | 116 | <param name="allowEnclaveComputations"> |
111 | 117 | <see langword="true" /> to indicate that the column master key supports enclave computations; otherwise, <see langword="false" />. |
112 | 118 | </param> |
| 119 | + <param name="cancellationToken"> |
| 120 | + A token to cancel the asynchronous operation. |
| 121 | + </param> |
113 | 122 | <summary> |
114 | 123 | When implemented in a derived class, asynchronously digitally signs the column master key metadata with the column master key referenced by the <paramref name="masterKeyPath" /> parameter. The input values used to generate the signature should be the specified values of the <paramref name="masterKeyPath" /> and <paramref name="allowEnclaveComputations" /> parameters. |
115 | 124 | </summary> |
|
118 | 127 | </returns> |
119 | 128 | <remarks> |
120 | 129 | <para> |
121 | | - To ensure that the <see cref="M:Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider.SignColumnMasterKeyMetadata(System.String,System.Boolean)" /> method doesn't break applications that rely on an old API, it throws a <see cref="T:System.NotImplementedException" /> exception by default. |
| 130 | + The default implementation calls the synchronous <see cref="M:Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider.SignColumnMasterKeyMetadata(System.String,System.Boolean)" /> method, which throws a <see cref="T:System.NotImplementedException" /> by default. In this case, the returned task will be faulted with <see cref="T:System.NotImplementedException" />. |
122 | 131 | </para> |
123 | 132 | <para> |
124 | | - The <see cref="M:Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider.SignColumnMasterKeyMetadata(System.String,System.Boolean)" /> method will be used by client tools that generate Column Master Keys (CMK) for customers. <see cref="M:Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider.SignColumnMasterKeyMetadata(System.String,System.Boolean)" /> must be implemented by the corresponding key store providers that wish to use enclaves with <see href="https://learn.microsoft.com/sql/relational-databases/security/encryption/always-encrypted-database-engine">Always Encrypted</see>. |
| 133 | + Key store providers that wish to use enclaves with <see href="https://learn.microsoft.com/sql/relational-databases/security/encryption/always-encrypted-database-engine">Always Encrypted</see> should override this method with a truly asynchronous implementation when the signing operation involves I/O. |
125 | 134 | </para> |
126 | 135 | </remarks> |
127 | | - <exception cref="T:System.NotImplementedException"> |
128 | | - In all cases. |
129 | | - </exception> |
130 | 136 | </SignColumnMasterKeyMetadataAsync> |
131 | 137 | <VerifyColumnMasterKeyMetadata> |
132 | 138 | <param name="masterKeyPath"> |
|
155 | 161 | <param name="signature"> |
156 | 162 | The signature of the column master key metadata. |
157 | 163 | </param> |
| 164 | + <param name="cancellationToken"> |
| 165 | + A token to cancel the asynchronous operation. |
| 166 | + </param> |
158 | 167 | <summary> |
159 | | - When implemented in a derived class, this method is expected to verify the specified signature is valid for the column master key with the specified key path and the specified enclave behavior asynchronously. The default implementation throws `NotImplementedException`. |
| 168 | + When implemented in a derived class, this method is expected to verify the specified signature is valid for the column master key with the specified key path and the specified enclave behavior asynchronously. The default implementation returns a faulted task with <see cref="T:System.NotImplementedException" />. |
160 | 169 | </summary> |
161 | 170 | <returns> |
162 | | - When implemented in a derived class, the method is expected to return true if the specified signature is valid, or false if the specified signature is not valid. The default implementation throws `NotImplementedException`. |
| 171 | + A task that, when completed, returns <see langword="true" /> if the specified signature is valid, or <see langword="false" /> if it is not valid. |
163 | 172 | </returns> |
164 | 173 | </VerifyColumnMasterKeyMetadataAsync> |
165 | 174 | <ColumnEncryptionKeyCacheTtl> |
|
0 commit comments