← Back
Editing: achallenges.cpython-38.pyc
U �]X � @ s` d Z ddlZddlZddlmZ e�e�ZG dd� dej �Z G dd� de �ZG dd � d e �ZdS ) a0 Client 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 e Zd ZdZdZeZdd� ZdS )�AnnotatedChallengez�Client annotated challenge. Wraps around server provided challenge and annotates with data useful for the client. :ivar challb: Wrapped `~.ChallengeBody`. )�challbc C s 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__�NotImplemented� acme_typer r r r r r s r c @ s e Zd ZdZdZdd� ZdS )�"KeyAuthorizationAnnotatedChallengez7Client annotated `KeyAuthorizationChallenge` challenge.)r �domain�account_keyc O s | j jj| jf|�|�S )z!Generate response and validation.)r Zchall�response_and_validationr )r �args�kwargsr r r r 4 s ���z:KeyAuthorizationAnnotatedChallenge.response_and_validationN)r r r r r r r r r r r 0 s r c @ s e Zd ZdZdZejZdS )�DNSz&Client annotated "dns" ACME challenge.)r r N)r r r r r r r r r r r r r : s r ) r ZloggingZjosepyZjoseZacmer Z getLoggerr ZloggerZImmutableMapr r r r r r r �<module> s
Save File
Cancel