UserDelegationKeyCredential class
仅在NODE.JS运行时中可用。
UserDelegationKeyCredential 仅用于生成用户委派 SAS。
请参见https://learn.microsoft.com/rest/api/storageservices/create-user-delegation-sas
构造函数
| User |
创建 UserDelegationKeyCredential 实例。 |
属性
| account |
Azure 存储账户名称;只读。 |
| user |
Azure Storage 用户委派密钥;只读。 |
方法
| computeHMACSHA256(string) | 为HTTP请求或SAS生成哈希签名。 |
构造函数详细信息
UserDelegationKeyCredential(string, UserDelegationKey)
创建 UserDelegationKeyCredential 实例。
new UserDelegationKeyCredential(accountName: string, userDelegationKey: UserDelegationKey)
参数
- accountName
-
string
- userDelegationKey
- UserDelegationKey
属性详细信息
accountName
Azure 存储账户名称;只读。
accountName: string
属性值
string
userDelegationKey
方法详细信息
computeHMACSHA256(string)
为HTTP请求或SAS生成哈希签名。
function computeHMACSHA256(stringToSign: string): string
参数
- stringToSign
-
string
返回
string