مشاركة عبر


EncryptionKeyResolver interface

يوفر واجهة لمحلل المفاتيح لمختلف موفري المفاتيح. يجب على جميع المحللين تنفيذ هذه الواجهة.

الخصائص

encryptionKeyResolverName

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

الأساليب

unwrapKey(string, string, Uint8Array)

فك مفتاح الإدخال المغلف باستخدام مفتاح تشفير المفتاح.

wrapKey(string, string, Uint8Array)

التفاف مفتاح الإدخال باستخدام مفتاح تشفير المفتاح.

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

encryptionKeyResolverName

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

encryptionKeyResolverName: string

قيمة الخاصية

string

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

unwrapKey(string, string, Uint8Array)

فك مفتاح الإدخال المغلف باستخدام مفتاح تشفير المفتاح.

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

المعلمات

encryptionKeyId

string

معرف المفتاح المدار للعميل لاستخدامه لفك التغليف.

algorithm

string

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

wrappedKey

Uint8Array

مفتاح تشفير البيانات الملفوف.

المرتجعات

Promise<Uint8Array>

مفتاح غير مغلف.

wrapKey(string, string, Uint8Array)

التفاف مفتاح الإدخال باستخدام مفتاح تشفير المفتاح.

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

المعلمات

encryptionKeyId

string

معرف المفتاح المدار من قبل العميل لاستخدامه في التغليف.

algorithm

string

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

unwrappedKey

Uint8Array

المرتجعات

Promise<Uint8Array>

مفتاح ملفوف.