Skip to content

@azure/keyvault-keys_4.4.0

Compare
Choose a tag to compare
@azure-sdk azure-sdk released this 24 Mar 18:28
0df989b

4.4.0 (2022-03-24)

Features Added

  • Added support for KeyClient.getRandomBytes which, when connected to a managed HSM, can be used to generate a byte array of a given length with random values.
  • Added support for Secure key Release from a Managed HSM.
    • Added KeyClient.releaseKey to release a key from a Managed HSM.
    • Added exportable and releasePolicy to KeyVaultKey.properties, createKeyOptions, and importKeyOptions in order to specify whether the key is exportable and to associate a release policy to a given key.
  • Added support for automated key rotation in Azure Key Vault and Managed HSM.
    • Added KeyClient.rotateKey to rotate a key on-demand.
    • Added KeyClient.updateKeyRotationPolicy to update a key's automated rotation policy.
  • Added support for KeyClient.getCryptographyClient(keyName, options) which provides a simple way to create a CryptographyClient for a given key (identified by its name).
    • An optional keyVersion property may be used in the options parameter to create a cryptography client targeting a specific key version. The latest version is used by default.

Other Changes

  • This release updates KeyClient and CryptographyClient to support service version 7.3 by default.