مشاركة عبر


AzureKeyVaultEncryptionKeyResolver class

تنفيذ EncryptionKeyResolver الذي يستخدم Azure Key Vault للمفاتيح المدارة للعملاء.

المنشئون

AzureKeyVaultEncryptionKeyResolver(TokenCredential)

الخصائص

encryptionKeyResolverName

اسم المحلل المراد استخدامه للتشفير من جانب العميل. حاليا يتم دعم تنفيذ AzureKeyVault فقط.

الأساليب

unwrapKey(string, string, Uint8Array)

فك المفتاح الملفوف المحدد باستخدام مسار مفتاح تشفير المفتاح المحدد والخوارزمية.

wrapKey(string, string, Uint8Array)

يلتف المفتاح المحدد باستخدام مسار مفتاح تشفير المفتاح المحدد والخوارزمية.

تفاصيل المنشئ

AzureKeyVaultEncryptionKeyResolver(TokenCredential)

new AzureKeyVaultEncryptionKeyResolver(credentials: TokenCredential)

المعلمات

credentials
TokenCredential

تفاصيل الخاصية

encryptionKeyResolverName

اسم المحلل المراد استخدامه للتشفير من جانب العميل. حاليا يتم دعم تنفيذ AzureKeyVault فقط.

encryptionKeyResolverName: AzureKeyVault

قيمة الخاصية

تفاصيل الأسلوب

unwrapKey(string, string, Uint8Array)

فك المفتاح الملفوف المحدد باستخدام مسار مفتاح تشفير المفتاح المحدد والخوارزمية.

function unwrapKey(encryptionKeyId: string, algorithm: string, wrappedKey: Uint8Array): Promise<Uint8Array>

المعلمات

encryptionKeyId

string

المسار إلى المفتاح المدار للعميل لاستخدامه لفك التغليف. بالنسبة إلى Azure Key Vault، هذا هو عنوان url للمفتاح في المخزن.

algorithm

string

خوارزمية لاستخدامها في فك التغليف.

wrappedKey

Uint8Array

ملفوفة DEK.

المرتجعات

Promise<Uint8Array>

DEK غير مغلف.

wrapKey(string, string, Uint8Array)

يلتف المفتاح المحدد باستخدام مسار مفتاح تشفير المفتاح المحدد والخوارزمية.

function wrapKey(encryptionKeyId: string, algorithm: string, unwrappedKey: Uint8Array): Promise<Uint8Array>

المعلمات

encryptionKeyId

string

المسار إلى المفتاح المدار للعميل لاستخدامه للتغليف. بالنسبة إلى Azure Key Vault، هذا هو عنوان url للمفتاح في المخزن.

algorithm

string

خوارزمية لاستخدامها في التغليف.

unwrappedKey

Uint8Array

يجب أن يتم لفها.

المرتجعات

Promise<Uint8Array>

ملفوفة DEK.