The CredentialsWrapper object provides a wrapper around a FetchAuthTokenInterface.
CloneableInstantiable
Methods |
public __construct(Google CredentialsWrapper constructor.
|
public static build(array $args = [], string $universeDomain = 'googleapis.com'Google\Auth\GetUniverseDomainInterface::DEFAULT_UNIVERSE_DOMAIN) Factory method to create a CredentialsWrapper from an array of options.
|
public checkUniverseDomain() : void Verify that the expected universe domain matches the universe domain from the credentials.
|
public getAuthorizationHeaderCallback( $audience = NULL) : ?callable
|
public getBearerString()
|
public getProjectId(?callable $httpHandler = NULL) : ?string |
public getQuotaProject() : ?string
|
public static validate(array $arr, array $requiredKeys)
|
public static validateNotNull(array $arr, array $requiredKeys)
|
Properties |
private $authHttpHandler = NULL
|
private ?Google
|
private static int $eagerRefreshThresholdSeconds = 10
|
private bool $hasCheckedUniverse = false |
private string $universeDomain |
Methods |
private static buildApplicationDefaultCredentials(?array $scopes = NULL, ?callable $authHttpHandler = NULL, ?array $authCacheOptions = NULL, ?Psr\Cache\CacheItemPoolInterface $authCache = NULL, $quotaProject = NULL, ?array $defaultScopes = NULL)
|
private static isExpired( $token)
|
private static isValid( $token)
|
private shouldCheckUniverseDomain() : bool Skip universe domain check for Metadata server (e.g. GCE) credentials.
|
private static validateFileExists(string $filePath)
|
private static validateImpl( $arr, $requiredKeys, $allowNull) |
Properties |
private static int $eagerRefreshThresholdSeconds = 10
|
Methods |
public static build(array $args = [], string $universeDomain = 'googleapis.com'Google\Auth\GetUniverseDomainInterface::DEFAULT_UNIVERSE_DOMAIN) Factory method to create a CredentialsWrapper from an array of options.
|
private static buildApplicationDefaultCredentials(?array $scopes = NULL, ?callable $authHttpHandler = NULL, ?array $authCacheOptions = NULL, ?Psr\Cache\CacheItemPoolInterface $authCache = NULL, $quotaProject = NULL, ?array $defaultScopes = NULL)
|
private static isExpired( $token)
|
private static isValid( $token)
|
public static validate(array $arr, array $requiredKeys)
|
private static validateFileExists(string $filePath)
|
private static validateImpl( $arr, $requiredKeys, $allowNull) |
public static validateNotNull(array $arr, array $requiredKeys)
|