Share via


KeyResolver クラス

定義

Azure Key Vault KeyResolver。 このクラスは、キー識別子とシークレット識別子Key Vault解決して、キーを使用して暗号化操作を実行できるインスタンスを作成CryptographyClientします。 シークレット識別子は、シークレットが AES キーの長さ (128、192、256) のいずれかに一致する長さのバイト配列であり、シークレットのコンテンツ タイプが application/octet-stream である場合にのみ解決できます。

public class KeyResolver : Azure.Core.Cryptography.IKeyEncryptionKeyResolver
type KeyResolver = class
    interface IKeyEncryptionKeyResolver
Public Class KeyResolver
Implements IKeyEncryptionKeyResolver
継承
KeyResolver
実装

コンストラクター

KeyResolver()

モック作成のために クラスの KeyResolver 新しいインスタンスを初期化します。

KeyResolver(TokenCredential)

KeyResolver クラスの新しいインスタンスを初期化します。

KeyResolver(TokenCredential, CryptographyClientOptions)

KeyResolver クラスの新しいインスタンスを初期化します。

メソッド

Resolve(Uri, CancellationToken)

CryptographyClient指定した によって表されるキーを使用して暗号化操作を実行できる を取得しますkeyId

ResolveAsync(Uri, CancellationToken)

CryptographyClient指定した によって表されるキーを使用して暗号化操作を実行できる を取得しますkeyId

明示的なインターフェイスの実装

IKeyEncryptionKeyResolver.Resolve(String, CancellationToken)

指定した keyId に対応するキー暗号化キーを取得します。

IKeyEncryptionKeyResolver.ResolveAsync(String, CancellationToken)

指定した keyId に対応するキー暗号化キーを取得します。

適用対象