UserDelegationKeyCredential class
ONLY AVAILABLE IN NODE.JS RUNTIME.
UserDelegationKeyCredential is only used for generation of user delegation SAS.
See https://learn.microsoft.com/rest/api/storageservices/create-user-delegation-sas
Constructors
| User |
Creates an instance of UserDelegationKeyCredential. |
Properties
| account |
Azure Storage account name; readonly. |
| user |
Azure Storage user delegation key; readonly. |
Methods
| computeHMACSHA256(string) | Generates a hash signature for an HTTP request or for a SAS. |
Constructor Details
UserDelegationKeyCredential(string, UserDelegationKey)
Creates an instance of UserDelegationKeyCredential.
new UserDelegationKeyCredential(accountName: string, userDelegationKey: UserDelegationKey)
Parameters
- accountName
-
string
- userDelegationKey
- UserDelegationKey
Property Details
accountName
Azure Storage account name; readonly.
accountName: string
Property Value
string
userDelegationKey
Azure Storage user delegation key; readonly.
userDelegationKey: UserDelegationKey
Property Value
Method Details
computeHMACSHA256(string)
Generates a hash signature for an HTTP request or for a SAS.
function computeHMACSHA256(stringToSign: string): string
Parameters
- stringToSign
-
string
Returns
string