InsecureCredentialsWrapper
class InsecureCredentialsWrapper extends CredentialsWrapper (View source)
For connect to emulator.
Traits
Methods
__construct()
CredentialsWrapper constructor.
static CredentialsWrapper
build(array $args = [], string $universeDomain = GetUniverseDomainInterface::DEFAULT_UNIVERSE_DOMAIN)
Factory method to create a CredentialsWrapper from an array of options.
from
CredentialsWrapper
callable
getAuthorizationHeaderCallback(string $audience = null)
No description
checkUniverseDomain()
Verify that the expected universe domain matches the universe domain from the credentials.
Details
static array
validate(array $arr, array $requiredKeys)
No description
static array
validateNotNull(array $arr, array $requiredKeys)
No description
__construct()
CredentialsWrapper constructor.
static CredentialsWrapper
build(array $args = [], string $universeDomain = GetUniverseDomainInterface::DEFAULT_UNIVERSE_DOMAIN)
Factory method to create a CredentialsWrapper from an array of options.
string|null
getQuotaProject()
No description
string|null
getProjectId(callable $httpHandler = null)
No description
string
getBearerString()
deprecated
deprecated
No description
callable
getAuthorizationHeaderCallback(string $audience = null)
No description
checkUniverseDomain()
Verify that the expected universe domain matches the universe domain from the credentials.