SharedKeyCredential class
ONLY AVAILABLE IN NODE.JS RUNTIME. SharedKeyCredential for account key authorization of Azure Storage service.
- Extends
Constructors
Shared |
Creates an instance of SharedKeyCredential. |
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 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
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