SharedKeyCredential
Shared Key authentication: signs every request with an HMAC-SHA256 over the storage account key, the way AzureBlobClient always used to before AzureCredential existed.
Synopsis
Section titled “Synopsis”final class SharedKeyCredential implements AzureCredential
| Implements | AzureCredential |
| Source | SharedKeyCredential.php |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(string $accountKey): mixed
| Parameter | Type | Description |
|---|---|---|
$accountKey | string |
Returns mixed
Methods
Section titled “Methods”| Method | Description |
|---|---|
authorizationHeader(string $accountName, string $method, string $path, array<string, string> $query, array<string, string> $headers): string |
authorizationHeader()
Section titled “authorizationHeader()”public function authorizationHeader(string $accountName, string $method, string $path, array<string, string> $query, array<string, string> $headers): string
The request’s headers, including x-ms-date and
x-ms-version, before Authorization is added.
| Parameter | Type | Description |
|---|---|---|
$accountName | string | |
$method | string | |
$path | string | |
$query | array``<``string``, ``string``> | Signed as part of the canonicalized resource. |
$headers | array``<``string``, ``string``> | The request’s headers, including x-ms-date and x-ms-version, before Authorization is added. |
Returns string