HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //snap/certbot/4965/lib/python3.12/site-packages/certbot/__pycache__/achallenges.cpython-312.pyc
�

N�h����dZddlZddlmZddlZddlmZddlm	Z	eje�ZGd�dej�ZGd�d	e�ZGd
�de�ZGd�d
e�Zy)a0Client annotated ACME challenges.

Please use names such as ``achall`` to distinguish from variables "of type"
:class:`acme.challenges.Challenge` (denoted by ``chall``)
and :class:`.ChallengeBody` (denoted by ``challb``)::

  from acme import challenges
  from acme import messages
  from certbot import achallenges

  chall = challenges.DNS(token='foo')
  challb = messages.ChallengeBody(chall=chall)
  achall = achallenges.DNS(chall=challb, domain='example.com')

Note, that all annotated challenges act as a proxy objects::

  achall.token == challb.token

�N)�Any)�
challenges)�	Challengec�:�eZdZUdZdZeZeee	d<de
defd�Zy)�AnnotatedChallengez�Client annotated challenge.

    Wraps around server provided challenge and annotates with data
    useful for the client.

    :ivar ~.challb: Wrapped `~.ChallengeBody`.

    )�challb�
_acme_type�name�returnc�.�t|j|�S)N)�getattrr)�selfr
s  ��/build/snapcraft-certbot-c9561b03ef7f16aa90eb6754ca5f17a1/parts/certbot/install/lib/python3.12/site-packages/certbot/achallenges.py�__getattr__zAnnotatedChallenge.__getattr__+s���t�{�{�D�)�)�N)
�__name__�
__module__�__qualname__�__doc__�	__slots__�NotImplementedr	�typer�__annotations__�strrr�rrrrs/����I�"0�J��Y��0�*��*��*rrc�2�eZdZdZdZdedededeffd�Zy)	�"KeyAuthorizationAnnotatedChallengez7Client annotated `KeyAuthorizationChallenge` challenge.)r�domain�account_key�args�kwargsrz,challenges.KeyAuthorizationChallengeResponsec�j�|jjj|jg|��i|��S)z!Generate response and validation.)r�chall�response_and_validationr)rr r!s   rr$z:KeyAuthorizationAnnotatedChallenge.response_and_validation3s<��9�t�{�{� � �8�8����/�#�/�'-�/�	/rN)rrrrrr�tupler$rrrrr/s0��A�3�I�/�S�/�C�/�
�A�3�F�
G�/rrc�,�eZdZdZdZejZy)�DNSz&Client annotated "dns" ACME challenge.�rrN)rrrrrrr'�	acme_typerrrr'r':s��0�$�I����Irr'c�,�eZdZdZdZejZy)�Otherz3Client annotated ACME challenge of an unknown type.r(N)rrrrrrrr)rrrr+r+@s��=�$�I��$�$�Irr+)r�logging�typingr�josepy�jose�acmer�acme.challengesr�	getLoggerr�logger�ImmutableMaprrr'r+rrr�<module>r5sf���&����%�	��	�	�8�	$��
*��*�*�
*� /�);�/��
��%��%r