4.4.0 (2022-03-31)
Features Added
-
Added support for service version
7.3
. -
Added the following APIs to
KeyClient
andKeyAsyncClient
:getRandomBytes
andgetRandomBytesWithResponse
which, when connected to a managed HSM, can be used to generate a byte array of a given length with random values.releaseKey
andreleaseKeyWithResponse
which support securely releasing a key from a Managed HSM.rotateKey
androtateKeyWithResponse
which allow to rotate a key on-demand in Azure Key Vault and Managed HSM.getKeyRotationPolicy
andgetKeyRotationPolicyWithResponse
which allow to retrieve a key's automated rotation policy.updateKeyRotationPolicy
andupdateKeyRotationPolicyWithResponse
which allow to update a key's automated rotation policy.getCryptographyClient
andgetCryptographyAsyncClient
which provide a simple way to create aCryptographyClient
andCryptographyAsyncClient
respectively for a key given its name and optionally a version.
-
Additionally added the following classes to support the aforementioned APIs:
KeyRotationPolicy
which represents a key's automated rotation policy.KeyRotationLifetimeAction
which represents an action that will be performed by Key Vault over the lifetime of a key.KeyRotationPolicyAction
, an enum for the types of key rotation policy actions that can be executed relative to a key.
KeyReleasePolicy
which represents the policy rules under which the key can be exported.ReleaseKeyOptions
which represents the configurable options to release a key.KeyExportEncryptionAlgorithm
, an enum for specifying an encryption algorithm to be used during key release.
ReleaseKeyResult
which contains the value of a released key.
-
exportable
andreleasePolicy
were added to the following classes as well:KeyProperties
CreateKeyOptions
CreateEcKeyOptions
CreateOctKeyOptions
CreateRsaKeyOptions
in order to specify whether the key is exportable and to associate a release policy to a given key
-
CryptographyClientBuilder
does not requirekeyIdentifier
to a include a key version. If no version is provided, cryptographic operations will be made using the latest version of the key. -
Implemented new traits (micro-interfaces) in
KeyClientBuilder
,CryptographyClientBuilder
andKeyEncryptionKeyClientBuilder
. This makes the experience of using client builders more consistent across libraries in the Azure SDK for Java.
Breaking Changes
These changes do not impact the API of stable versions such as
4.3.0
.
Only code written against beta version4.4.0-beta.7
may be affected.
- Changed
getRandomBytes
operations inKeyClient
andKeyAsyncClient
to returnbyte[]
instead ofRandomBytes
. - Removed the
RandomBytes
class.