A class to implement caching for any object implementing FetchAuthTokenInterface
CloneableInstantiable
| Constants |
| Methods |
public __construct(Google
|
| public fetchAuthToken(?callable $httpHandler = NULL) Implements FetchAuthTokenInterface#fetchAuthToken. Checks the cache for a valid auth token and fetches the auth tokens from the supplied fetcher.
|
public getCacheKey()
|
| public getClientName(?callable $httpHandler = NULL) Get the client name from the fetcher.
|
public getFetcher()
|
public getLastReceivedToken()
|
| public getProjectId(?callable $httpHandler = NULL) Get the Project ID from the fetcher.
|
| public getQuotaProject() Get the quota project used for this API request from the credentials fetcher.
|
| public getUniverseDomain() : string |
| public signBlob( $stringToSign, $forceOpenSsl = false) Sign a blob using the fetcher.
|
| public updateMetadata( $metadata, $authUri = NULL, ?callable $httpHandler = NULL) Updates metadata with the authorization token.
|
| Properties |
private $cache = NULL
|
private $cacheConfig = NULL
|
private $eagerRefreshThresholdSeconds = 10
|
private $fetcher = NULL
|
private $maxKeyLength = 64
|
| Methods |
private fetchAuthTokenFromCache( $authUri = NULL)
|
| private getCachedUniverseDomain(Google |
| private getCachedValue( $k) Gets the cached value if it is present in the cache when that is available.
|
private getFullCacheKey( $key)
|
private saveAuthTokenInCache( $authToken, $authUri = NULL)
|
| private setCachedValue( $k, $v) Saves the value in the cache when that is available.
|