|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/site-packages/google/auth/__pycache__/ |
U
O��gI � @ s
d Z ddlZddlmZ ddlZddlmZmZ ddlmZ ddlm Z ddl
mZ ddlm
Z
d ZG d
d� de�ZG dd
� d
e�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� dejd�ZG dd� de�Zddd�ZG dd� dejd�ZG dd� de�ZdS ) zInterfaces for credentials.� N)�Enum)�_helpers�environment_vars)�
exceptions)�metrics)�_BaseCredentials)�RefreshThreadManagerzgoogleapis.comc s� e Zd ZdZ� fdd�Zedd� �Zedd� �Zedd � �Zed
d� �Z edd
� �Z
dd� Zej
dd� �Zdd� Zddd�Zdd� Zdd� Zdd� Zdd� Z� ZS ) �CredentialsaQ Base class for all credentials.
All credentials have a :attr:`token` that is used for authentication and
may also optionally set an :attr:`expiry` to indicate when the token will
no longer be valid.
Most credentials will be :attr:`invalid` until :meth:`refresh` is called.
Credentials can do this automatically before the first HTTP request in
:meth:`before_request`.
Although the token and expiration will change as the credentials are
:meth:`refreshed <refresh>` and used, credentials should be considered
immutable. Various credentials will accept configuration such as private
keys, scopes, and other options. These options are not changeable after
construction. Some classes will provide mechanisms to copy the credentials
with modifications such as :meth:`ScopedCredentials.with_scopes`.
c s8 t t| ��� d | _d | _d | _t| _d| _t � | _
d S �NF)�superr �__init__�expiry�_quota_project_id�_trust_boundary�DEFAULT_UNIVERSE_DOMAIN�_universe_domain�_use_non_blocking_refreshr �_refresh_worker��self�� __class__� �D/opt/cppython/lib/python3.8/site-packages/google/auth/credentials.pyr 2 s zCredentials.__init__c C s"