4.4.0-beta.4 (2021-10-07)
Features Added
- Added new functions to key clients to enable key rotation:
KeyClient
rotateKey(String name)
rotateKeyWithResponse(String name, Context context)
getKeyRotationPolicy(String name)
getKeyRotationPolicyWithResponse(String name, Context context)
updateKeyRotationPolicy(String name, KeyRotationPolicyProperties keyRotationPolicyProperties)
updateKeyRotationPolicyWithResponse(String name, KeyRotationPolicyProperties keyRotationPolicyProperties, Context context)
KeyAsyncClient
rotateKey(String name)
rotateKeyWithResponse(String name)
getKeyRotationPolicy(String name)
getKeyRotationPolicyWithResponse(String name)
updateKeyRotationPolicy(String name, KeyRotationPolicyProperties keyRotationPolicyProperties)
updateKeyRotationPolicyWithResponse(String name, KeyRotationPolicyProperties keyRotationPolicyProperties)
- Added convenience methods to create cryptography clients using key clients:
KeyClient.getCryptographyClient(String keyName)
KeyClient.getCryptographyClient(String keyName, String keyVersion)
KeyAsyncClient.getCryptographyAsyncClient(String keyName)
KeyAsyncClient.getCryptographyAsyncClient(String keyName, String keyVersion)
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.
Bugs Fixed
- Fixed an issue that made clients send unnecessary unauthorized requests to obtain a bearer challenge from the service even when already possessing a valid bearer token.
- Fixed issue that prevented creating a
CryptographyClient
orCryptographyAsyncClient
with a key identifier that does not contain a key version. - Fixed issue that made
createOctKey()
operations ignore akeySize
set inCreateOctKeyOptions
, making said keys be created with the default service key size instead.
Other Changes
Dependency Updates
- Upgraded
azure-core
dependency to1.21.0
- Upgraded
azure-core-http-netty
dependency to1.11.1