Skip to content

AzureCredential

Produces the Authorization header value for one AzureBlobClient request.

Shared Key needs the full request shape to compute a signature; a bearer-token strategy needs none of it and answers the same header for every call. Both fit through this one seam so AzureBlobClient::send() never branches on which kind of credential it was given.

interface AzureCredential

Implemented byBearerCredential, SharedKeyCredential
SourceAzureCredential.php
MethodDescription
authorizationHeader(string $accountName, string $method, string $path, array<string, string> $query, array<string, string> $headers): string

abstract 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.

ParameterTypeDescription
$accountNamestring
$methodstring
$pathstring
$queryarray``<``string``, ``string``>Signed as part of the canonicalized resource.
$headersarray``<``string``, ``string``>The request’s headers, including x-ms-date and x-ms-version, before Authorization is added.

Returns string