§
    Âi^  ã                   ó®   — d Z ddlZddlZddlZddlmZ dZdZ G d„ dej        ¬¦  «        Z	 G d	„ d
ej        ¬¦  «        Z
 G d„ dej        ¬¦  «        ZdS )z5Base classes for cryptographic signers and verifiers.é    N)Ú
exceptionsÚprivate_keyÚprivate_key_idc                   ó2   — e Zd ZdZej        d„ ¦   «         ZdS )ÚVerifierz9Abstract base class for crytographic signature verifiers.c                 ó    — t          d¦  «        ‚)a�  Verifies a message against a cryptographic signature.

        Args:
            message (Union[str, bytes]): The message to verify.
            signature (Union[str, bytes]): The cryptography signature to check.

        Returns:
            bool: True if message was signed by the private key associated
            with the public key that this object was constructed with.
        zVerify must be implemented©ÚNotImplementedError)ÚselfÚmessageÚ	signatures      ú`/var/www/html/jarvis.com/web/backend/venv/lib/python3.11/site-packages/google/auth/crypt/base.pyÚverifyzVerifier.verify   s   € õ "Ð">Ñ?Ô?Ð?ó    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚabcÚabstractmethodr   © r   r   r   r      s<   € € € € € ØCÐCàÔð@ð @ñ Ôð@ð @ð @r   r   )Ú	metaclassc                   óR   — e Zd ZdZej        d„ ¦   «         Zej        d„ ¦   «         ZdS )ÚSignerz.Abstract base class for cryptographic signers.c                 ó    — t          d¦  «        ‚)z<Optional[str]: The key ID used to identify this private key.zKey id must be implementedr	   )r   s    r   Úkey_idzSigner.key_id2   s   € õ "Ð">Ñ?Ô?Ð?r   c                 ó    — t          d¦  «        ‚)z®Signs a message.

        Args:
            message (Union[str, bytes]): The message to be signed.

        Returns:
            bytes: The signature of the message.
        zSign must be implementedr	   )r   r   s     r   ÚsignzSigner.sign7   s   € õ "Ð"<Ñ=Ô=Ð=r   N)	r   r   r   r   r   Úabstractpropertyr   r   r   r   r   r   r   r   /   sY   € € € € € Ø8Ð8àÔð@ð @ñ Ôð@ð 	Ôð>ð >ñ Ôð>ð >ð >r   r   c                   ó`   — e Zd ZdZej        dd„¦   «         Zed„ ¦   «         Zed„ ¦   «         Z	dS )ÚFromServiceAccountMixinz3Mix-in to enable factory constructors for a Signer.Nc                 ó    — t          d¦  «        ‚)ad  Construct an Signer instance from a private key string.

        Args:
            key (str): Private key as a string.
            key_id (str): An optional key id used to identify the private key.

        Returns:
            google.auth.crypt.Signer: The constructed signer.

        Raises:
            ValueError: If the key cannot be parsed.
        zfrom_string must be implementedr	   )ÚclsÚkeyr   s      r   Úfrom_stringz#FromServiceAccountMixin.from_stringI   s   € õ "Ð"CÑDÔDÐDr   c                 ó®   — t           |vrt          j        d¦  «        ‚|                      |t                    |                     t
          ¦  «        ¦  «        S )a‹  Creates a Signer instance instance from a dictionary containing
        service account info in Google format.

        Args:
            info (Mapping[str, str]): The service account info in Google
                format.

        Returns:
            google.auth.crypt.Signer: The constructed signer.

        Raises:
            ValueError: If the info is not in the expected format.
        z@The private_key field was not found in the service account info.)Ú_JSON_FILE_PRIVATE_KEYr   ÚMalformedErrorr%   ÚgetÚ_JSON_FILE_PRIVATE_KEY_ID)r#   Úinfos     r   Úfrom_service_account_infoz1FromServiceAccountMixin.from_service_account_infoY   sW   € õ "¨Ð-Ð-ÝÔ+ØUñô ð ð �ŠØÕ'Ô(¨$¯(ª(Õ3LÑ*MÔ*Mñ
ô 
ð 	
r   c                 ó²   — t          j        |dd¬¦  «        5 }t          j        |¦  «        }ddd¦  «         n# 1 swxY w Y   |                      |¦  «        S )a  Creates a Signer instance from a service account .json file
        in Google format.

        Args:
            filename (str): The path to the service account .json file.

        Returns:
            google.auth.crypt.Signer: The constructed signer.
        Úrzutf-8)ÚencodingN)ÚioÚopenÚjsonÚloadr,   )r#   ÚfilenameÚ	json_fileÚdatas       r   Úfrom_service_account_filez1FromServiceAccountMixin.from_service_account_fileq   s’   € õ ŒW�X˜s¨WÐ5Ñ5Ô5ð 	(¸Ý”9˜YÑ'Ô'ˆDð	(ð 	(ð 	(ñ 	(ô 	(ð 	(ð 	(ð 	(ð 	(ð 	(ð 	(øøøð 	(ð 	(ð 	(ð 	(ð ×,Ò,¨TÑ2Ô2Ð2s   ˜9¹=Á =)N)
r   r   r   r   r   r   r%   Úclassmethodr,   r7   r   r   r   r!   r!   F   sv   € € € € € Ø=Ð=àÔðEð Eð Eñ ÔðEð ð
ð 
ñ „[ð
ð. ð3ð 3ñ „[ð3ð 3ð 3r   r!   )r   r   r0   r2   Úgoogle.authr   r'   r*   ÚABCMetar   r   r!   r   r   r   ú<module>r;      sì   ðð <Ð ;à 
€
€
€
Ø 	€	€	€	Ø €€€à "Ð "Ð "Ð "Ð "Ð "à&Ð Ø,Ð ð@ð @ð @ð @ð @˜œð @ñ @ô @ð @ð(>ð >ð >ð >ð >�s”{ð >ñ >ô >ð >ð.93ð 93ð 93ð 93ð 93¨¬ð 93ñ 93ô 93ð 93ð 93ð 93r   