HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/1784574/root/usr/lib/python3/dist-packages/certbot/__pycache__/
Upload File :
Current File : //proc/1784574/root/usr/lib/python3/dist-packages/certbot/__pycache__/achallenges.cpython-311.pyc
�

E��c����dZddlZddlmZddlmZddlZddlmZddl	m
Z
eje��Z
Gd�dej��ZGd	�d
e��ZGd�de��ZdS)
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)�Type)�
challenges)�	Challengec�B�eZdZUdZdZeZeee	d<de
defd�ZdS)�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	)�selfrs  �5/usr/lib/python3/dist-packages/certbot/achallenges.py�__getattr__zAnnotatedChallenge.__getattr__,s���t�{�D�)�)�)�N)
�__name__�
__module__�__qualname__�__doc__�	__slots__�NotImplementedr
rr�__annotations__�strrr�rrrr s]����������I�"0�J��Y��0�0�0�*��*��*�*�*�*�*�*rrc�*�eZdZdZdZdededefd�ZdS)�"KeyAuthorizationAnnotatedChallengez7Client annotated `KeyAuthorizationChallenge` challenge.)r	�domain�account_key�args�kwargsrc�B�|jjj|jg|�Ri|��S)z!Generate response and validation.)r	�chall�response_and_validationr)rr r!s   rr$z:KeyAuthorizationAnnotatedChallenge.response_and_validation4s>��8�t�{� �8���/�#�/�/�/�'-�/�/�	/rN)rrrrrrr$rrrrr0sH������A�A�3�I�/�S�/�C�/�C�/�/�/�/�/�/rrc�$�eZdZdZdZejZdS)�DNSz&Client annotated "dns" ACME challenge.)r	rN)rrrrrrr&�	acme_typerrrr&r&:s ������0�0�$�I���I�I�Irr&)r�logging�typingrr�josepy�jose�acmer�acme.challengesr�	getLoggerr�logger�ImmutableMaprrr&rrr�<module>r1s
����&��������������������������%�%�%�%�%�%�	��	�8�	$�	$��
*�
*�
*�
*�
*��*�
*�
*�
*� /�/�/�/�/�);�/�/�/������
�����r