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

StorageSharedKeyCredential class

仅在 NODE.JS RUNTIME 中可用。

用于 Azure 存储服务的帐户密钥授权的 StorageSharedKeyCredential。

Extends

构造函数

StorageSharedKeyCredential(string, string)

创建 StorageSharedKeyCredential 的实例。

属性

accountName

Azure 存储帐户名称;readonly。

方法

computeHMACSHA256(string)

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

create(RequestPolicy, RequestPolicyOptions)

创建 StorageSharedKeyCredentialPolicy 对象。

构造函数详细信息

StorageSharedKeyCredential(string, string)

创建 StorageSharedKeyCredential 的实例。

new StorageSharedKeyCredential(accountName: string, accountKey: string)

参数

accountName

string

accountKey

string

属性详细信息

accountName

Azure 存储帐户名称;readonly。

accountName: string

属性值

string

方法详细信息

computeHMACSHA256(string)

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

function computeHMACSHA256(stringToSign: string): string

参数

stringToSign

string

返回

string

create(RequestPolicy, RequestPolicyOptions)

创建 StorageSharedKeyCredentialPolicy 对象。

function create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageSharedKeyCredentialPolicy

参数

nextPolicy
RequestPolicy

返回