/usr/lib/python3/dist-packages/acme/__pycache__
Edit: /usr/lib/python3/dist-packages/acme/__pycache__/mixins.cpython-310.pyc (2855B)
o
6a
@ sp d Z ddlmZ ddlmZ G dd dZG dd deZG dd d eZd
ededed
eeef fddZdS )z0Useful mixins for Challenge and Resource objects )Any)Dictc sX e Zd ZdZedefddZejdeddfddZded e ddf fd
dZ
ZS )VersionedLEACMEMixinzEThis mixin stores the version of Let's Encrypt's endpoint being used.returnc C s t | ddS )z*Define the version of ACME protocol to use_le_acme_version )getattrself r -/usr/lib/python3/dist-packages/acme/mixins.pyle_acme_version s z$VersionedLEACMEMixin.le_acme_versionversionNc C s t | d| d S )Nr )object__setattr__)r
r r r r r
s keyvaluec s, |dkr
t | || d S t || d S )Nr
)r r super)r
r r __class__r r r s z VersionedLEACMEMixin.__setattr__)__name__
__module____qualname____doc__propertyintr
setterstrr r
__classcell__r r r r r s "r c H e Zd ZdZdeeef f fddZdeeef f fddZ Z S )
ResourceMixinz
This mixin generates a RFC8555 compliant JWS payload
by removing the `resource` field if needed (eg. ACME v2 protocol).
r c t t ddS )/See josepy.JSONDeserializable.to_partial_json()to_partial_jsonresource_safe_jobj_compliancer r r r r r# ! zResourceMixin.to_partial_jsonc r! )8See josepy.JSONObjectWithFields.fields_to_partial_json()fields_to_partial_jsonr$ r% r r r r r) &