keys Package

Packages

aio
crypto

Classes

DeletedKey

A deleted key's properties, cryptographic material and its deletion information. If soft-delete is enabled, returns information about its recovery as well.

JsonWebKey

As defined in http://tools.ietf.org/html/draft-ietf-jose-json-web-key-18. All parameters are optional.

KeyClient

A high-level interface for managing a vault's keys.

KeyProperties

A key's id and attributes.

KeyReleasePolicy

The policy rules under which a key can be exported.

KeyRotationLifetimeAction

An action and its corresponding trigger that will be performed by Key Vault over the lifetime of a key.

KeyRotationPolicy

The key rotation policy that belongs to a key.

KeyVaultKey

A key's attributes and cryptographic material.

Providing cryptographic material as keyword arguments:


   from azure.keyvault.keys.models import KeyVaultKey

   key_id = 'https://myvault.vault.azure.net/keys/my-key/my-key-version'
   key_bytes = os.urandom(32)
   key = KeyVaultKey(key_id, k=key_bytes, kty='oct', key_ops=['unwrapKey', 'wrapKey'])

Providing cryptographic material as a dictionary:


   from azure.keyvault.keys.models import KeyVaultKey

   key_id = 'https://myvault.vault.azure.net/keys/my-key/my-key-version'
   key_bytes = os.urandom(32)
   jwk = {'k': key_bytes, 'kty': 'oct', 'key_ops': ['unwrapKey', 'wrapKey']}
   key = KeyVaultKey(key_id, jwk=jwk)
KeyVaultKeyIdentifier

Information about a KeyVaultKey parsed from a key ID.

ReleaseKeyResult

The result of a key release operation.

Enums

ApiVersion

Key Vault API versions supported by this package

KeyCurveName

Supported elliptic curves

KeyExportEncryptionAlgorithm

Supported algorithms for protecting exported key material

KeyOperation

Supported key operations

KeyRotationPolicyAction

The action that will be executed in a key rotation policy

KeyType

Supported key types