Skip to content

Commit efbd1e2

Browse files
Edits
1 parent 5dba0c4 commit efbd1e2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

articles/storage/blobs/client-side-encryption.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ The following table shows which versions of the client libraries for .NET, Java,
5959

6060
| | .NET | Java | Python |
6161
| --- | --- | --- | --- |
62-
| **Client-side encryption v2 and v1** | [Versions 12.13.0 and later](https://www.nuget.org/packages/Azure.Storage.Blobs) | [Versions 12.18.0 and later](https://search.maven.org/artifact/com.azure/azure-storage-blob)</br>v2.1 is supported in version 12.27.0 and later | [Versions 12.13.0 and later](https://pypi.org/project/azure-storage-blob) |
62+
| **Client-side encryption v2 and v1** | [Versions 12.13.0 and later](https://www.nuget.org/packages/Azure.Storage.Blobs) | [Versions 12.18.0 and later] | [Versions 12.13.0 and later](https://pypi.org/project/azure-storage-blob) |
6363
| **Client-side encryption v1 only** | Versions 12.12.0 and earlier | Versions 12.17.0 and earlier | Versions 12.12.0 and earlier |
6464

6565
If your application is using client-side encryption with an earlier version of the .NET, Java, or Python client library, you must first upgrade your code to a version that supports client-side encryption v2. Next, you must decrypt and re-encrypt your data with client-side encryption v2. If necessary, you can use a version of the client library that supports client-side encryption v2 side-by-side with an earlier version of the client library while you're migrating your code. For code examples, see [Example: Encrypting and decrypting a blob with client-side encryption v2](#example-encrypting-and-decrypting-a-blob-with-client-side-encryption-v2).
@@ -215,8 +215,9 @@ BlobClientSideEncryptionOptions encryptionOptions = new BlobClientSideEncryption
215215
.setAuthenticatedRegionDataLengthInBytes(1024 * 4);
216216

217217
EncryptedBlobClient ebc = new EncryptedBlobClientBuilder(EncryptionVersion.V2_1)
218-
.blobClient(null)
219-
.key(keyEncryptionKey, keyWrapAlgorithm)
218+
.blobClient(client)
219+
.key(key, keyWrapAlgorithm)
220+
.keyResolver(keyResolver)
220221
.credential(new DefaultAzureCredentialBuilder().build())
221222
.endpoint("https://<storage-account-name>.blob.core.windows.net/")
222223
.clientSideEncryptionOptions(encryptionOptions)

0 commit comments

Comments
 (0)