你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

UserDelegationKeyCredential class

仅在NODE.JS运行时中可用。

UserDelegationKeyCredential 仅用于生成用户委派 SAS。

请参见https://learn.microsoft.com/rest/api/storageservices/create-user-delegation-sas

构造函数

UserDelegationKeyCredential(string, UserDelegationKey)

创建 UserDelegationKeyCredential 实例。

属性

accountName

Azure 存储账户名称;只读。

userDelegationKey

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

Azure Storage 用户委派密钥;只读。

userDelegationKey: UserDelegationKey

属性值

方法详细信息

computeHMACSHA256(string)

为HTTP请求或SAS生成哈希签名。

function computeHMACSHA256(stringToSign: string): string

参数

stringToSign

string

返回

string