Skip to content

Commit

Permalink
Corrected broken link in README and sample with error. (#12464)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcolin7 authored Jul 10, 2020
1 parent 4ffbde3 commit 2892a1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdk/keyvault/azure-security-keyvault-keys/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ The following sections provide several code snippets covering some of the most c
- [Update an existing key asynchronously](#update-an-existing-key-asynchronously)
- [Delete a key asynchronously](#delete-a-key-asynchronously)
- [List keys asynchronously](#list-keys-asynchronously)
- [Encrypt asynchronously](#encryp-asynchronously)
- [Encrypt asynchronously](#encrypt-asynchronously)
- [Decrypt asynchronously](#decrypt-asynchronously)
> Note : You should add `System.in.read()` or `Thread.sleep()` after the function calls in the main class/thread to allow async functions/operations to execute and finish before the main application/thread exits.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public KeyAsyncClient createAsyncClientWithHttpClient() {
// BEGIN: com.azure.security.keyvault.keys.async.keyclient.withhttpclient.instantiation
KeyAsyncClient keyAsyncClient = new KeyClientBuilder()
.vaultUrl("https://myvault.azure.net/")
.credential(new DefaultAzureCredentialBuilder().build())
.httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS))
.addPolicy(new KeyVaultCredentialPolicy(new DefaultAzureCredentialBuilder().build()))
.httpClient(HttpClient.createDefault())
.buildAsyncClient();
// END: com.azure.security.keyvault.keys.async.keyclient.withhttpclient.instantiation
Expand Down

0 comments on commit 2892a1e

Please sign in to comment.