HOME


Mini Shell 1.0
DIR: /snap/certbot/4557/lib64/python3.12/site-packages/certbot/__pycache__/
Upload File :
Current File : //snap/certbot/4557/lib64/python3.12/site-packages/certbot/__pycache__/achallenges.cpython-312.pyc
�


N�gA����dZddlZddlmZddlmZddlmZddlZddlm	Z	ddl
mZeje
�ZGd�d	ej�ZGd
�de�ZGd�d
e�ZGd�de�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)�Tuple)�Type)�
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-2c33630aaf29c47357e5a1683f659d3d/parts/certbot/install/lib/python3.12/site-packages/certbot/achallenges.py�__getattr__zAnnotatedChallenge.__getattr__-s���t�{�{�D�)�)�N)
�__name__�
__module__�__qualname__�__doc__�	__slots__�NotImplementedrrr�__annotations__�strrr�rrr	r	!s/����I�"0�J��Y��0�*��*��*rr	c�2�eZdZdZdZdedededeffd�Zy)	�"KeyAuthorizationAnnotatedChallengez7Client annotated `KeyAuthorizationChallenge` challenge.)r
�domain�account_key�args�kwargsr
z,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_validation5s<��9�t�{�{� � �8�8����/�#�/�'-�/�	/rN)rrrrrrrr%rrrrr1s0��A�3�I�/�S�/�C�/�
�A�3�F�
G�/rrc�,�eZdZdZdZejZy)�DNSz&Client annotated "dns" ACME challenge.�r
rN)rrrrrrr'�	acme_typerrrr'r'<s��0�$�I����Irr'c�,�eZdZdZdZejZy)�Otherz3Client annotated ACME challenge of an unknown type.r(N)rrrrrrrr)rrrr+r+Bs��=�$�I��$�$�Irr+)r�logging�typingrrr�josepy�jose�acmer�acme.challengesr�	getLoggerr�logger�ImmutableMapr	rr'r+rrr�<module>r5sl���&������%�	��	�	�8�	$��
*��*�*�
*� /�);�/��
��%��%r