Language

KeyResolver Class

Definition

Azure Key Vault KeyResolver. This class resolves Key Vault Key Identifiers and Secret Identifiers to create CryptographyClient instances capable of performing cryptographic operations with the key. Secret Identifiers can only be resolved if the Secret is a byte array with a length matching one of the AES key lengths (128, 192, 256) and the content-type of the secret is application/octet-stream.

public class KeyResolver : Azure.Core.Cryptography.IKeyEncryptionKeyResolver
public class KeyResolver : Azure.Core.Cryptography.IKeyEncryptionKeyResolver, IDisposable
type KeyResolver = class
    interface IKeyEncryptionKeyResolver
type KeyResolver = class
    interface IKeyEncryptionKeyResolver
    interface IDisposable
Public Class KeyResolver
Implements IKeyEncryptionKeyResolver
Public Class KeyResolver
Implements IDisposable, IKeyEncryptionKeyResolver
Inheritance
KeyResolver
Implements

Constructors

Name Description
KeyResolver()

Initializes a new instance of the KeyResolver class for mocking.

KeyResolver(TokenCredential, CryptographyClientOptions)

Initializes a new instance of the KeyResolver class.

KeyResolver(TokenCredential)

Initializes a new instance of the KeyResolver class.

Methods

Name Description
Dispose()

Releases the HTTP pipeline resources owned by this resolver.

Resolve(Uri, CancellationToken)

Retrieves a CryptographyClient capable of performing cryptographic operations with the key represented by the specified keyId.

ResolveAsync(Uri, CancellationToken)

Retrieves a CryptographyClient capable of performing cryptographic operations with the key represented by the specified keyId.

Explicit Interface Implementations

Name Description
IKeyEncryptionKeyResolver.Resolve(String, CancellationToken)

Retrieves the key encryption key corresponding to the specified keyId.

IKeyEncryptionKeyResolver.ResolveAsync(String, CancellationToken)

Retrieves the key encryption key corresponding to the specified keyId.

Applies to