StorageSharedKeyCredential class

ONLY AVAILABLE IN NODE.JS RUNTIME.

StorageSharedKeyCredential for account key authorization of Azure Storage service.

Extends

Constructors

StorageSharedKeyCredential(string, string)

Creates an instance of StorageSharedKeyCredential.

Properties

accountName

Azure Storage account name; readonly.

Methods

computeHMACSHA256(string)

Generates a hash signature for an HTTP request or for a SAS.

create(RequestPolicy, RequestPolicyOptionsLike)

Creates a StorageSharedKeyCredentialPolicy object.

Constructor Details

StorageSharedKeyCredential(string, string)

Creates an instance of StorageSharedKeyCredential.

new StorageSharedKeyCredential(accountName: string, accountKey: string)

Parameters

accountName

string

accountKey

string

Property Details

accountName

Azure Storage account name; readonly.

accountName: string

Property Value

string

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

create(RequestPolicy, RequestPolicyOptionsLike)

Creates a StorageSharedKeyCredentialPolicy object.

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

Parameters

nextPolicy
IHttpClient

Returns