ok

Mini Shell

Direktori : /lib/python3.6/site-packages/certbot/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/certbot/__pycache__/achallenges.cpython-36.pyc

3

گa��@s�dZddlZddlmZddlmZddlZddlmZddl	m
Z
eje�Z
Gdd�dej�ZGd	d
�d
e�ZGdd�de�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@s2eZdZUdZdZeZeee	e
d�dd�ZdS)�AnnotatedChallengez�Client annotated challenge.

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

    :ivar ~.challb: Wrapped `~.ChallengeBody`.

    �challb)�name�returncCst|j|�S)N)�getattrr)�selfr�r�!/usr/lib/python3.6/achallenges.py�__getattr__,szAnnotatedChallenge.__getattr__N)r)�__name__�
__module__�__qualname__�__doc__�	__slots__�NotImplementedZ
_acme_typerr�strrrrrrr
r s
rc@s&eZdZdZd	Zeeed�dd�ZdS)
�"KeyAuthorizationAnnotatedChallengez7Client annotated `KeyAuthorizationChallenge` challenge.r�domain�account_key)�args�kwargsr	cOs|jjj|jf|�|�S)z!Generate response and validation.)rZchall�response_and_validationr)rrrrrr
r4sz:KeyAuthorizationAnnotatedChallenge.response_and_validationN)rrr)rrrrrrrrrrr
r0src@seZdZdZdZejZdS)�DNSz&Client annotated "dns" ACME challenge.rrN)rr)rrrrrrrZ	acme_typerrrr
r:sr)rZloggingZtypingrrZjosepyZjoseZacmerZacme.challengesrZ	getLoggerrZloggerZImmutableMaprrrrrrr
�<module>s


Zerion Mini Shell 1.0