Bagikan melalui


UserDelegationKeyCredential class

HANYA TERSEDIA DALAM RUNTIME NODE.JS.

UserDelegationKeyCredential hanya digunakan untuk pembuatan SAS delegasi pengguna.

Lihat https://learn.microsoft.com/rest/api/storageservices/create-user-delegation-sas

Konstruktor

UserDelegationKeyCredential(string, UserDelegationKey)

Membuat instans UserDelegationKeyCredential.

Properti

accountName

Nama akun Azure Storage; hanya baca.

userDelegationKey

Kunci delegasi pengguna Azure Storage; hanya baca.

Metode

computeHMACSHA256(string)

Menghasilkan tanda tangan hash untuk permintaan HTTP atau untuk SAS.

Detail Konstruktor

UserDelegationKeyCredential(string, UserDelegationKey)

Membuat instans UserDelegationKeyCredential.

new UserDelegationKeyCredential(accountName: string, userDelegationKey: UserDelegationKey)

Parameter

accountName

string

userDelegationKey
UserDelegationKey

Detail Properti

accountName

Nama akun Azure Storage; hanya baca.

accountName: string

Nilai Properti

string

userDelegationKey

Kunci delegasi pengguna Azure Storage; hanya baca.

userDelegationKey: UserDelegationKey

Nilai Properti

Detail Metode

computeHMACSHA256(string)

Menghasilkan tanda tangan hash untuk permintaan HTTP atau untuk SAS.

function computeHMACSHA256(stringToSign: string): string

Parameter

stringToSign

string

Mengembalikan

string