CasperSecurity

Current Path : /lib/python3/dist-packages/acme/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/acme/__pycache__/mixins.cpython-310.pyc

o

6��a�
@spdZddlmZddlmZGdd�d�ZGdd�de�ZGdd	�d	e�Zd
ededed
eeeffdd�ZdS)z0Useful mixins for Challenge and Resource objects�)�Any)�DictcsXeZdZdZedefdd��Zejdeddfdd��Zded	e	ddf�fd
d�Z
�ZS)�VersionedLEACMEMixinzEThis mixin stores the version of Let's Encrypt's endpoint being used.�returncCst|dd�S)z*Define the version of ACME protocol to use�_le_acme_version�)�getattr��self�r�-/usr/lib/python3/dist-packages/acme/mixins.py�le_acme_versionsz$VersionedLEACMEMixin.le_acme_version�versionNcCst�|d|�dS)Nr)�object�__setattr__)r
rrrrr

s�key�valuecs,|dkr
t�|||�dSt��||�dS)Nr
)rr�super)r
rr��	__class__rrrsz VersionedLEACMEMixin.__setattr__)�__name__�
__module__�__qualname__�__doc__�property�intr
�setter�strrr�
__classcell__rrrrrs"rc�HeZdZdZdeeeff�fdd�Zdeeeff�fdd�Z�Z	S)�
ResourceMixinz�
    This mixin generates a RFC8555 compliant JWS payload
    by removing the `resource` field if needed (eg. ACME v2 protocol).
    rc�tt�dd�S)�/See josepy.JSONDeserializable.to_partial_json()�to_partial_json�resource��_safe_jobj_compliancerr	rrrr#!��zResourceMixin.to_partial_jsoncr!)�8See josepy.JSONObjectWithFields.fields_to_partial_json()�fields_to_partial_jsonr$r%r	rrrr)&r'z$ResourceMixin.fields_to_partial_json�
rrrrrrrr#r)rrrrrr �"r cr)�	TypeMixinz�
    This mixin allows generation of a RFC8555 compliant JWS payload
    by removing the `type` field if needed (eg. ACME v2 protocol).
    rcr!)r"r#�typer%r	rrrr#1r'zTypeMixin.to_partial_jsoncr!)r(r)r-r%r	rrrr)6r'z TypeMixin.fields_to_partial_jsonr*rrrrr,,r+r,�instance�jobj_method�uncompliant_fieldrcCs>t||�rt||��}|jdkr|�|d�|Std�|���)N�z Method {0}() is not implemented.)�hasattrrr
�pop�AttributeError�format)r.r/r0�jobjrrrr&<s

r&N)	r�typingrrrr r,rr&rrrr�<module>s
�
�
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY