diff --git a/sdk/storage/azure-storage-blob/CHANGELOG.md b/sdk/storage/azure-storage-blob/CHANGELOG.md index cc1186980e94..33765f6cd457 100644 --- a/sdk/storage/azure-storage-blob/CHANGELOG.md +++ b/sdk/storage/azure-storage-blob/CHANGELOG.md @@ -25,6 +25,8 @@ and - Renamed `setTier` to `setAccessTier` from `BlobAsyncClientBase` and `BlobClientBase` classes. - Added `ParallelTransferOptions` to buffered upload, upload from file and download to file methods. - Removed `Metadata` class and uses Map for `matadata` field of `BlobProperties` and `ContainerProperties`. +- Removed SAS token generation APIs from clients, use BlobServiceSasSignatureValues to generate SAS tokens. +- Removed `SASTokenCredential`, `SASTokenCredentialPolicy` and the corresponding `credential(SASTokenCredential)` method in client builder, and added sasToken(String) instead. ## Version 12.0.0-preview.3 (2019-09-10) For details on the Azure SDK for Java (September 2019 Preview) release, you can refer to the [release announcement](https://aka.ms/azure-sdk-preview3-java). diff --git a/sdk/storage/azure-storage-file/CHANGELOG.md b/sdk/storage/azure-storage-file/CHANGELOG.md index 2a59156fb536..52416b2a7e2b 100644 --- a/sdk/storage/azure-storage-file/CHANGELOG.md +++ b/sdk/storage/azure-storage-file/CHANGELOG.md @@ -15,6 +15,8 @@ and - Fixed metadata does not allow capital letter issue. [`Bug 5295`](https://github.com/Azure/azure-sdk-for-java/issues/5295) - Updated the return type of `downloadToFile` API to `FileProperties` on sync API and `Mono` on async API. - `getFileServiceUrl`, `getShareUrl`, `getDirectoryUrl`, `getFileUrl` API now returns URL with scheme, host, resource name and snapshot if any. +- Removed SAS token generation APIs from clients, use FileServiceSasSignatureValues to generate SAS tokens. +- Removed `SASTokenCredential`, `SASTokenCredentialPolicy` and the corresponding `credential(SASTokenCredential)` method in client builder, and added sasToken(String) instead. ## Version 12.0.0-preview.3 (2019-09-10): For details on the Azure SDK for Java (September 2019 Preview) release, you can refer to the [release announcement](https://aka.ms/azure-sdk-preview3-java). diff --git a/sdk/storage/azure-storage-queue/CHANGELOG.md b/sdk/storage/azure-storage-queue/CHANGELOG.md index c947852031c2..f45a07a77b83 100644 --- a/sdk/storage/azure-storage-queue/CHANGELOG.md +++ b/sdk/storage/azure-storage-queue/CHANGELOG.md @@ -13,6 +13,9 @@ and - Changed `VoidResponse` to `Response` on sync API, and `Mono` to `Mono>` on async API. - Fixed metadata does not allow capital letter issue. [`Bug 5295`](https://github.com/Azure/azure-sdk-for-java/issues/5295) - `getQueueServiceUrl`, `getQueueUrl` API now returns URL with scheme, host, resource name and snapshot if any. +- Removed SAS token generation APIs from clients, use QueueServiceSasSignatureValues to generate SAS tokens. +- Removed `SASTokenCredential`, `SASTokenCredentialPolicy` and the corresponding `credential(SASTokenCredential)` method in client builder, and added sasToken(String) instead. + ## Version 12.0.0-preview.3 (2019-09-10) diff --git a/sdk/storage/azure-storage-queue/README.md b/sdk/storage/azure-storage-queue/README.md index 1002bf948f95..2b469b37d608 100644 --- a/sdk/storage/azure-storage-queue/README.md +++ b/sdk/storage/azure-storage-queue/README.md @@ -158,7 +158,7 @@ The client performs the interactions with the Queue service, create or delete a Once you have the value of the SASToken you can create the queue service client with `${accountName}`, `${SASToken}`. ```Java String queueServiceURL = String.format("https://%s.queue.core.windows.net", accountName); -QueueServiceClient queueServiceClient = new QueueServiceClientBuilder().endpoint(queueServiceURL).credential(SASToken).buildClient(); +QueueServiceClient queueServiceClient = new QueueServiceClientBuilder().endpoint(queueURL).sasToken(SASToken).build(); QueueClient newQueueClient = queueServiceClient.createQueue("myqueue"); ``` @@ -168,7 +168,7 @@ or ```Java String queueServiceAsyncURL = String.format("https://%s.queue.core.windows.net/", accountName); QueueServiceAsyncClient queueServiceAsyncClient = new QueueServiceClientBuilder().endpoint(queueServiceAsyncURL) -.credential(SASToken).buildAsyncClient(); +.sasToken(SASToken).buildAsyncClient(); queueServiceAsyncClient.createQueue("newAsyncQueue").subscribe( result -> { // do something when new queue created @@ -189,7 +189,7 @@ A single queue message can be up to 64 KB in size, and a queue can contain milli Once you have the value of the SASToken you can create the queue service client with `${accountName}`, `${queueName}`, `${SASToken}`. ```Java String queueURL = String.format("https://%s.queue.core.windows.net/%s", accountName, queueName); -QueueClient queueClient = new QueueClientBuilder().endpoint(queueURL).credential(SASToken).buildClient(); +QueueClient queueClient = new QueueClientBuilder().endpoint(queueURL).sasToken(SASToken).buildClient(); // metadata is map of key-value pair queueClient.createWithResponse(metadata, null, Duration.ofSeconds(30), Context.NONE); @@ -392,7 +392,7 @@ The operation sets user-defined metadata on the specified queue. Metadata is ass Use `${SASToken}` as credential. ```Java String queueSURL = String.format("https://%s.queue.core.windows.net", accountName); -QueueClient queueClient = new QueueClientBuilder().endpoint(queueURL).credential(SASToken).queueName("myqueue").buildClient(); +QueueClient queueClient = new QueueClientBuilder().endpoint(queueURL).sasToken(SASToken).queueName("myqueue").buildClient(); Map metadata = new HashMap() {{ put("key1", "val1");