Your IP : 216.73.216.224


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

U

�]X�@s`dZddlZddlZddlmZe�e�ZGdd�dej	�Z
Gdd�de
�ZGdd	�d	e
�ZdS)
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)�
challengesc@s eZdZdZdZeZdd�ZdS)�AnnotatedChallengez�Client annotated challenge.

    Wraps around server provided challenge and annotates with data
    useful for the client.

    :ivar challb: Wrapped `~.ChallengeBody`.

    )�challbcCst|j|�S)N)�getattrr)�self�name�r�5/usr/lib/python3/dist-packages/certbot/achallenges.py�__getattr__,szAnnotatedChallenge.__getattr__N)�__name__�
__module__�__qualname__�__doc__�	__slots__�NotImplemented�	acme_typer
rrrr	r src@seZdZdZdZdd�ZdS)�"KeyAuthorizationAnnotatedChallengez7Client annotated `KeyAuthorizationChallenge` challenge.)r�domain�account_keycOs|jjj|jf|�|�S)z!Generate response and validation.)rZchall�response_and_validationr)r�args�kwargsrrr	r4s���z:KeyAuthorizationAnnotatedChallenge.response_and_validationN)rrr
rrrrrrr	r0src@seZdZdZdZejZdS)�DNSz&Client annotated "dns" ACME challenge.)rrN)rrr
rrrrrrrrr	r:sr)
rZloggingZjosepyZjoseZacmerZ	getLoggerrZloggerZImmutableMaprrrrrrr	�<module>s