CredentialsWrapper
class CredentialsWrapper (View source)
The CredentialsWrapper object provides a wrapper around a FetchAuthTokenInterface.
Traits
Methods
__construct(FetchAuthTokenInterface $credentialsFetcher, callable $authHttpHandler = null)
CredentialsWrapper constructor.
static CredentialsWrapper
build(array $args = [])
Factory method to create a CredentialsWrapper from an array of options.
string|null
getQuotaProject()
No description
string
callable
getAuthorizationHeaderCallback(string $audience = null)
No description
Details
static array
validate(array $arr, array $requiredKeys)
No description
static array
validateNotNull(array $arr, array $requiredKeys)
No description
__construct(FetchAuthTokenInterface $credentialsFetcher, callable $authHttpHandler = null)
CredentialsWrapper constructor.
static CredentialsWrapper
build(array $args = [])
Factory method to create a CredentialsWrapper from an array of options.
string|null
getQuotaProject()
No description
string
getBearerString()
deprecated
deprecated
No description
callable
getAuthorizationHeaderCallback(string $audience = null)
No description