Bagikan melalui


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
type KeyResolver = class
    interface IKeyEncryptionKeyResolver
Public Class KeyResolver
Implements IKeyEncryptionKeyResolver
Inheritance
KeyResolver
Implements

Constructors

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

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

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