SharedKeyCredential class

ONLY AVAILABLE IN NODE.JS RUNTIME. SharedKeyCredential for account key authorization of Azure Storage service.

Extends

Constructors

SharedKeyCredential(string, string)

Creates an instance of SharedKeyCredential.

Properties

accountName

Azure Storage account name; readonly.

Methods

computeHMACSHA256(string)

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

create(RequestPolicy, RequestPolicyOptions)

Creates a SharedKeyCredentialPolicy object.

Constructor Details

SharedKeyCredential(string, string)

Creates an instance of SharedKeyCredential.

new SharedKeyCredential(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)

Parameters

stringToSign

string

Returns

string

create(RequestPolicy, RequestPolicyOptions)

Creates a SharedKeyCredentialPolicy object.

function create(nextPolicy: RequestPolicy, options: RequestPolicyOptions)

Parameters

nextPolicy

RequestPolicy

options

RequestPolicyOptions

Returns