AzureKeyCredential class
A static-key-based credential that supports updating the underlying key value.
Constructors
Azure |
Create an instance of an AzureKeyCredential for use with a service client. |
Properties
key | The value of the key to be used in authentication |
Methods
update(string) | Change the value of the key. Updates will take effect upon the next request after updating the key value. |
Constructor Details
AzureKeyCredential(string)
Create an instance of an AzureKeyCredential for use with a service client.
new AzureKeyCredential(key: string)
Parameters
- key
-
string
The initial value of the key to use in authentication
Property Details
key
The value of the key to be used in authentication
string key
Property Value
string
Method Details
update(string)
Change the value of the key.
Updates will take effect upon the next request after updating the key value.
function update(newKey: string)
Parameters
- newKey
-
string
The new key value to be used