File manager - Edit - /usr/local/CyberCP/lib/python3.10/site-packages/google/auth/__pycache__/credentials.cpython-310.pyc
Back
o �hTH � @ s d Z ddlZddlmZ ddlZddlmZmZ ddlmZ ddlm Z ddl mZ dZG d d � d ej d�ZG dd � d e�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� dej d�ZG dd� de�Zddd�ZG dd� dej d�ZG dd� de�ZdS )zInterfaces for credentials.� N)�Enum)�_helpers�environment_vars)� exceptions)�metrics)�RefreshThreadManagerzgoogleapis.comc @ s� e Zd ZdZdd� Zedd� �Zedd� �Zedd � �Zed d� �Z edd � �Z ejdd� �Z dd� Zddd�Zdd� Zdd� Zdd� Zdd� ZdS )�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 C s: d | _ d | _ d | _ d | _ t| _ d| _t� | _d S �NF) �token�expiry�_quota_project_id�_trust_boundary�DEFAULT_UNIVERSE_DOMAIN�_universe_domain�_use_non_blocking_refreshr �_refresh_worker��self� r �J/usr/local/CyberCP/lib/python3.10/site-packages/google/auth/credentials.py�__init__1 s zCredentials.__init__c C s"