FetchAuthTokenCache
class FetchAuthTokenCache implements FetchAuthTokenInterface, SignBlobInterface (View source)
A class to implement caching for any object implementing FetchAuthTokenInterface
Traits
Methods
__construct(FetchAuthTokenInterface $fetcher, array $cacheConfig = null, CacheItemPoolInterface $cache)
No description
array
fetchAuthToken(callable $httpHandler = null)
Implements FetchAuthTokenInterface#fetchAuthToken.
string
getCacheKey()
No description
null|array
getLastReceivedToken()
No description
string
getClientName(callable $httpHandler = null)
Get the client name from the fetcher.
string
signBlob(string $stringToSign, $forceOpenSsl = false)
Sign a blob using the fetcher.
Details
__construct(FetchAuthTokenInterface $fetcher, array $cacheConfig = null, CacheItemPoolInterface $cache)
No description
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.
string
getCacheKey()
No description
null|array
getLastReceivedToken()
No description
string
getClientName(callable $httpHandler = null)
Get the client name from the fetcher.
string
signBlob(string $stringToSign, $forceOpenSsl = false)
Sign a blob using the fetcher.