Skip to content

Latest commit

 

History

History
113 lines (97 loc) · 7.12 KB

File metadata and controls

113 lines (97 loc) · 7.12 KB
page_type languages products urlFragment
sample
java
azure
azure-key-vault
keyvault-keys-samples

Azure Key Vault Keys Samples client library for Java

This document explains samples and how to use them.

Key concepts

Key concepts are explained in detail here.

Getting started

Getting started explained in detail here.

Examples

Following section document various examples.

Hello World Samples

List Operations Samples

Backup And Restore Operations Samples

Managing Deleted Keys Samples:

Encrypt And Decrypt Operations Samples:

Sign And Verify Operations Samples:

Key Wrap And Unwrap Operations Samples:

Troubleshooting

General

Key Vault clients raise exceptions. For example, if you try to retrieve a key after it is deleted a 404 error is returned, indicating resource not found. In the following snippet, the error is handled gracefully by catching the exception and displaying additional information about the error.

try {
    keyClient.getKey("deletedKey")
} catch (ResourceNotFoundException e) {
    System.out.println(e.getMessage());
}

Next steps

Start using KeyVault Java SDK in your solutions. Our SDK details could be found at SDK README.

Additional Documentation

For more extensive documentation on Azure Key Vault, see the API reference documentation.

Contributing

This project welcomes contributions and suggestions. Find more contributing details here.

Impressions