Condividi tramite


UserDelegationKeyCredential class

DISPONIBILE SOLO IN NODE.JS RUNTIME.

UserDelegationKeyCredential è utilizzato solo per la generazione di SAS della delega utente.

Fare riferimento a https://learn.microsoft.com/rest/api/storageservices/create-user-delegation-sas

Costruttori

UserDelegationKeyCredential(string, UserDelegationKey)

Crea un'istanza di UserDelegationKeyCredential.

Proprietà

accountName

Nome account Azure Storage; Live-only.

userDelegationKey

Chiave di delegazione utente Azure Storage; Live-only.

Metodi

computeHMACSHA256(string)

Genera una firma hash per una richiesta HTTP o per un SAS.

Dettagli costruttore

UserDelegationKeyCredential(string, UserDelegationKey)

Crea un'istanza di UserDelegationKeyCredential.

new UserDelegationKeyCredential(accountName: string, userDelegationKey: UserDelegationKey)

Parametri

accountName

string

userDelegationKey
UserDelegationKey

Dettagli proprietà

accountName

Nome account Azure Storage; Live-only.

accountName: string

Valore della proprietà

string

userDelegationKey

Chiave di delegazione utente Azure Storage; Live-only.

userDelegationKey: UserDelegationKey

Valore della proprietà

Dettagli metodo

computeHMACSHA256(string)

Genera una firma hash per una richiesta HTTP o per un SAS.

function computeHMACSHA256(stringToSign: string): string

Parametri

stringToSign

string

Restituisce

string