HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-10-0-8-47 6.8.0-1021-aws #23~22.04.1-Ubuntu SMP Tue Dec 10 16:31:58 UTC 2024 aarch64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.22
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/certbot/__pycache__/achallenges.cpython-310.pyc
o

6��a�@sxdZddlZddlmZddlZddlmZddlm	Z	e�
e�ZGdd�dej
�ZGdd	�d	e�ZGd
d�de�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)�Type)�
challenges)�	Challengec@s.eZdZUdZdZeZeee	d<dd�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_typecCst|j|�S)N)�getattrr)�self�name�r�5/usr/lib/python3/dist-packages/certbot/achallenges.py�__getattr__+szAnnotatedChallenge.__getattr__N)�__name__�
__module__�__qualname__�__doc__�	__slots__�NotImplementedrrr�__annotations__r
rrrrrs

rc@seZdZdZdZdd�ZdS)�"KeyAuthorizationAnnotatedChallengez7Client annotated `KeyAuthorizationChallenge` challenge.)r�domain�account_keycOs|jjj|jg|�Ri|��S)z!Generate response and validation.)r�chall�response_and_validationr)r	�args�kwargsrrrr3s���z:KeyAuthorizationAnnotatedChallenge.response_and_validationN)rrrrrrrrrrr/src@seZdZdZdZejZdS)�DNSz&Client annotated "dns" ACME challenge.)rrN)rrrrrrr�	acme_typerrrrr9s
r)r�logging�typingr�josepy�jose�acmer�acme.challengesr�	getLoggerr�logger�ImmutableMaprrrrrrr�<module>s