AbstractAuth
in package
implements
AuthInterface
AbstractYes
Azure storage abstract auth class
Tags
Table of Contents
Interfaces
- AuthInterface
- Azure storage auth interface
Properties
- $accountKey : string|null
- Account key
- $accountName : string|null
- Account name
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() : AbstractAuth
- Set account key
- setAccountName() : AbstractAuth
- Set account name
- signRequest() : Request
- Adds authentication header to the request headers.
Properties
$accountKey
Account key
protected
string|null
$accountKey
= null
$accountName
Account name
protected
string|null
$accountName
= null
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
abstract 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) : AbstractAuth
Parameters
- $accountKey : string
Return values
AbstractAuthsetAccountName()
Set account name
public
setAccountName(string $accountName) : AbstractAuth
Parameters
- $accountName : string
Return values
AbstractAuthsignRequest()
Adds authentication header to the request headers.
public
abstract signRequest(Request $request) : Request
Parameters
- $request : Request