Sdílet prostřednictvím


UserDelegationKeyCredential class

K DISPOZICI POUZE V NODE.JS RUNTIME.

UserDelegationKeyCredential se používá pouze pro generování user delegation SAS.

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

Konstruktory

UserDelegationKeyCredential(string, UserDelegationKey)

Vytváří instanci UserDelegationKeyCredential.

Vlastnosti

accountName

Azure Storage account name; pouze pro čtení.

userDelegationKey

Azure Storage user delegation key; pouze pro čtení.

Metody

computeHMACSHA256(string)

Generuje hashovací podpis pro HTTP požadavek nebo pro SAS.

Podrobnosti konstruktoru

UserDelegationKeyCredential(string, UserDelegationKey)

Vytváří instanci UserDelegationKeyCredential.

new UserDelegationKeyCredential(accountName: string, userDelegationKey: UserDelegationKey)

Parametry

accountName

string

userDelegationKey
UserDelegationKey

Podrobnosti vlastnosti

accountName

Azure Storage account name; pouze pro čtení.

accountName: string

Hodnota vlastnosti

string

userDelegationKey

Azure Storage user delegation key; pouze pro čtení.

userDelegationKey: UserDelegationKey

Hodnota vlastnosti

Podrobnosti metody

computeHMACSHA256(string)

Generuje hashovací podpis pro HTTP požadavek nebo pro SAS.

function computeHMACSHA256(stringToSign: string): string

Parametry

stringToSign

string

Návraty

string