FetchAuthTokenCache
class FetchAuthTokenCache implements FetchAuthTokenInterface, GetQuotaProjectInterface, GetUniverseDomainInterface, SignBlobInterface, ProjectIdProviderInterface, UpdateMetadataInterface (View source)
A class to implement caching for any object implementing FetchAuthTokenInterface
Traits
Methods
No description
No description
Implements FetchAuthTokenInterface#fetchAuthToken.
No description
No description
Get the client name from the fetcher.
Sign a blob using the fetcher.
Get the quota project used for this API request from the credentials fetcher.
Get the project ID.
Get the universe domain from the credential. This should always return a string, and default to "googleapis.com" if no universe domain is configured.
Updates metadata with the authorization token.
Details
at line 51
__construct(FetchAuthTokenInterface $fetcher, array $cacheConfig = null, CacheItemPoolInterface $cache)
at line 68
FetchAuthTokenInterface
getFetcher()
at line 83
array
fetchAuthToken(callable $httpHandler = null)
Implements FetchAuthTokenInterface#fetchAuthToken.
Checks the cache for a valid auth token and fetches the auth tokens from the supplied fetcher.
at line 99
string
getCacheKey()
at line 107
null|array
getLastReceivedToken()
at line 118
string
getClientName(callable $httpHandler = null)
Get the client name from the fetcher.
at line 141
string
signBlob(string $stringToSign, bool $forceOpenSsl = false)
Sign a blob using the fetcher.
at line 170
string|null
getQuotaProject()
Get the quota project used for this API request from the credentials fetcher.
at line 187
string|null
getProjectId(callable $httpHandler = null)
Get the project ID.
at line 213
string
getUniverseDomain()
Get the universe domain from the credential. This should always return a string, and default to "googleapis.com" if no universe domain is configured.
at line 235
array
updateMetadata(array $metadata, string $authUri = null, callable $httpHandler = null)
Updates metadata with the authorization token.