HEX
Server: LiteSpeed
System: Linux ws4.angoweb.net 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: tswangoe (2287)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
Upload Files
File: //proc/self/root/lib/python3.9/site-packages/certbot/__pycache__/achallenges.cpython-39.opt-1.pyc
a

}|�g��@s�dZddlZddlmZddlmZddlZddlmZddl	m
Z
e�e�Z
Gdd�dej�ZGd	d
�d
e�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)�Any)�Type)�
challenges)�	Challengec@s6eZdZUdZdZeZeee	d<e
ed�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_type)�name�returncCst|j|�S)N)�getattrr)�selfr	�r
�7/usr/lib/python3.9/site-packages/certbot/achallenges.py�__getattr__,szAnnotatedChallenge.__getattr__N)
�__name__�
__module__�__qualname__�__doc__�	__slots__�NotImplementedrrr�__annotations__�strrrr
r
r
rr s
rc@s&eZdZdZdZeeed�dd�ZdS)�"KeyAuthorizationAnnotatedChallengez7Client annotated `KeyAuthorizationChallenge` challenge.)r�domain�account_key)�args�kwargsr
cOs|jjj|jg|�Ri|��S)z!Generate response and validation.)rZchall�response_and_validationr)rrrr
r
rr4s���z:KeyAuthorizationAnnotatedChallenge.response_and_validationN)rrrrrrrr
r
r
rr0src@seZdZdZdZejZdS)�DNSz&Client annotated "dns" ACME challenge.�rrN)rrrrrrr�	acme_typer
r
r
rr:src@seZdZdZdZejZdS)�Otherz3Client annotated ACME challenge of an unknown type.rN)rrrrrrrr r
r
r
rr!@sr!)rZlogging�typingrrZjosepyZjoseZacmerZacme.challengesrZ	getLoggerr�loggerZImmutableMaprrrr!r
r
r
r�<module>s