%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/certbot/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/certbot/__pycache__/achallenges.cpython-312.pyc

�

M/�e�����dZddlZddlmZddlmZddlZddlmZddl	m
Z
eje�Z
Gd�dej�ZGd	�d
e�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)�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	)�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�*��*��*rrc�(�eZdZdZdZdededefd�Zy)�"KeyAuthorizationAnnotatedChallengez7Client annotated `KeyAuthorizationChallenge` challenge.)r	�domain�account_key�args�kwargsrc�j�|jjj|jg|��i|��S)z!Generate response and validation.)r	�chall�response_and_validationr)rr r!s   rr$z:KeyAuthorizationAnnotatedChallenge.response_and_validation4s:��8�t�{�{� � �8�8����/�#�/�'-�/�	/rN)rrrrrrr$rrrrr0s$��A�3�I�/�S�/�C�/�C�/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*@s��=�$�I��$�$�Irr*)r�logging�typingrr�josepy�jose�acmer�acme.challengesr�	getLoggerr�logger�ImmutableMaprrr&r*rrr�<module>r4si���&�����%�	��	�	�8�	$��
*��*�*�
*� /�);�/��
��%��%r

Zerion Mini Shell 1.0