StorageSharedKeyCredential class

僅適用於運行時間NODE.JS。

Azure 記憶體服務帳戶密鑰授權的 StorageSharedKeyCredential。

Extends

建構函式

StorageSharedKeyCredential(string, string)

建立 StorageSharedKeyCredential 的實例。

屬性

accountName

Azure 記憶體帳戶名稱;readonly。

方法

computeHMACSHA256(string)

為 HTTP 要求或 SAS 產生哈希簽章。

create(RequestPolicy, RequestPolicyOptionsLike)

建立 StorageSharedKeyCredentialPolicy 物件。

建構函式詳細資料

StorageSharedKeyCredential(string, string)

建立 StorageSharedKeyCredential 的實例。

TypeScript
new StorageSharedKeyCredential(accountName: string, accountKey: string)

參數

accountName

string

accountKey

string

屬性詳細資料

accountName

Azure 記憶體帳戶名稱;readonly。

TypeScript
accountName: string

屬性值

string

方法詳細資料

computeHMACSHA256(string)

為 HTTP 要求或 SAS 產生哈希簽章。

TypeScript
function computeHMACSHA256(stringToSign: string): string

參數

stringToSign

string

傳回

string

create(RequestPolicy, RequestPolicyOptionsLike)

建立 StorageSharedKeyCredentialPolicy 物件。

TypeScript
function create(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike): StorageSharedKeyCredentialPolicy

參數

nextPolicy
IHttpClient

傳回