ok
Direktori : /lib/python3.6/site-packages/acme/__pycache__/ |
Current File : //lib/python3.6/site-packages/acme/__pycache__/mixins.cpython-36.pyc |
3 گa � @ sj d Z ddlmZ ddlmZ G dd� d�ZG dd� de�ZG dd � d e�Zeeeeeef d �dd�Zd S )z0Useful mixins for Challenge and Resource objects� )�Any)�Dictc sR e Zd ZdZeed�dd��Zejedd�dd��Zee dd�� fd d �Z � ZS )�VersionedLEACMEMixinzEThis mixin stores the version of Let's Encrypt's endpoint being used.)�returnc C s t | dd�S )z*Define the version of ACME protocol to use�_le_acme_version� )�getattr)�self� r �/usr/lib/python3.6/mixins.py�le_acme_version s z$VersionedLEACMEMixin.le_acme_versionN)�versionr c C s t j| d|� d S )Nr )�object�__setattr__)r r r r r r s )�key�valuer c s* |dkrt j| ||� nt� j||� d S )Nr )r r �super)r r r )� __class__r r r s z VersionedLEACMEMixin.__setattr__)�__name__� __module__�__qualname__�__doc__�property�intr �setter�strr r � __classcell__r r )r r r s r c sH e Zd ZdZeeef d�� fdd�Zeeef d�� fdd�Z� Z S )� ResourceMixinz� This mixin generates a RFC8555 compliant JWS payload by removing the `resource` field if needed (eg. ACME v2 protocol). )r c s t t� dd�S )z/See josepy.JSONDeserializable.to_partial_json()�to_partial_json�resource)�_safe_jobj_compliancer )r )r r r r ! s zResourceMixin.to_partial_jsonc s t t� dd�S )z8See josepy.JSONObjectWithFields.fields_to_partial_json()�fields_to_partial_jsonr )r r )r )r r r r! &