Namespace
Google \ Auth \ CredentialsMethods
__construct
scope
string|string[]
The scope of the access request, expressed either as an array or as a space-delimited string.
jsonKey
array
JSON credentials as an associative array.
fetchAuthToken
Fetches the auth tokens based on the current state.
httpHandler
callable|null
headers
array
[optional] Metrics headers to be inserted into the token endpoint request present.
array
getCacheKey
Get the cache token key for the credentials.
The cache token key format depends on the type of source The format for the cache key one of the following: FetcherCacheKey.Scope.[ServiceAccount].[TokenType].[WorkforcePoolUserProject] FetcherCacheKey.Audience.[ServiceAccount].[TokenType].[WorkforcePoolUserProject]
getLastReceivedToken
Returns an associative array with the token and expiration time.
getQuotaProject
Get the quota project used for this API request
string|null
getUniverseDomain
Get the universe domain used for this API request
string
getProjectId
Get the project ID.
httpHandler
callable|null
Callback which delivers psr7 request
accessToken
string|null
The access token to use to sign the blob. If
provided, saves a call to the metadata server for a new access
token. Defaults to null
.
string|null