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): string
Parameters
- stringToSign
-
string
Returns
string
create(RequestPolicy, RequestPolicyOptions)
Creates a SharedKeyCredentialPolicy object.
function create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): SharedKeyCredentialPolicy
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for