Share via


BatchSharedKeyCredentials class

Creates a new BatchSharedKeyCredentials object.

Constructors

BatchSharedKeyCredentials(string, string)

Properties

accountKey

The batch account key.

accountName

The batch account name.

Methods

signRequest(WebResource)

Signs a request with the Authentication header.

Constructor Details

BatchSharedKeyCredentials(string, string)

new BatchSharedKeyCredentials(accountName: string, accountKey: string)

Parameters

accountName

string

accountKey

string

Property Details

accountKey

The batch account key.

accountKey: string

Property Value

string

accountName

The batch account name.

accountName: string

Property Value

string

Method Details

signRequest(WebResource)

Signs a request with the Authentication header.

function signRequest(webResource: WebResource): Promise<WebResource>

Parameters

webResource
WebResource

Returns

Promise<WebResource>