StorageSharedKeyCredential class
ONLY AVAILABLE IN NODE.JS RUNTIME.
StorageSharedKeyCredential for account key authorization of Azure Storage service.
- Extends
Constructors
Storage |
Creates an instance of StorageSharedKeyCredential. |
Properties
account |
Azure Storage account name; readonly. |
Methods
computeHMACSHA256(string) | Generates a hash signature for an HTTP request or for a SAS. |
create(Request |
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
- options
- RequestPolicyOptions
Returns
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for JavaScript