AuthInterface
in
Azure storage auth interface
Tags
Table of Contents
Methods
- getAccountKey() : string|null
- Get account key
- getAccountName() : string|null
- Get account name
- getAuthorizationHeader() : string
- Returns authorization header to be included in the request.
- getBaseUri() : string
- Get account key
- hasAccountKey() : bool
- Has account key
- hasAccountName() : bool
- Has account name
- setAccountKey() : AuthInterface
- Set account key
- setAccountName() : AuthInterface
- Set account name
- signRequest() : Request
- Adds authentication header to the request headers.
Methods
getAccountKey()
Get account key
public
getAccountKey() : string|null
Return values
string|nullgetAccountName()
Get account name
public
getAccountName() : string|null
Return values
string|nullgetAuthorizationHeader()
Returns authorization header to be included in the request.
public
getAuthorizationHeader(array<string|int, mixed> $headers, string $url, array<string|int, mixed> $queryParams, string $httpMethod) : string
Parameters
- $headers : array<string|int, mixed>
- $url : string
- $queryParams : array<string|int, mixed>
- $httpMethod : string
Return values
stringgetBaseUri()
Get account key
public
getBaseUri() : string
Return values
stringhasAccountKey()
Has account key
public
hasAccountKey() : bool
Return values
boolhasAccountName()
Has account name
public
hasAccountName() : bool
Return values
boolsetAccountKey()
Set account key
public
setAccountKey(string $accountKey) : AuthInterface
Parameters
- $accountKey : string
Return values
AuthInterfacesetAccountName()
Set account name
public
setAccountName(string $accountName) : AuthInterface
Parameters
- $accountName : string
Return values
AuthInterfacesignRequest()
Adds authentication header to the request headers.
public
signRequest(Request $request) : Request
Parameters
- $request : Request