private function refresh() { $this->credentials = null; $fn = $this->provider; $creds = CredentialProvider::resolve($fn); if ($creds->isExpired()) { throw new CredentialsException('Could not refresh credentials'); } $this->credentials = $creds; }
public static function _default_credentials() { return CredentialProvider::resolve(CredentialProvider::defaultProvider()); }