HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/acme/__pycache__/jws.cpython-38.pyc
U

[^+�@sFdZddlZGdd�dej�ZGdd�dej�ZGdd�dej�ZdS)	z�ACME-specific JWS.

The JWS implementation in josepy only implements the base JOSE standard. In
order to support the new header fields defined in ACME, this module defines some
ACME-specific classes that layer on top of josepy.
�Nc@sLeZdZdZejddejd�Zejddd�Zejddd�Z	ej
dd	��Zd
S)�Headerz?ACME-specific JOSE Header. Implements nonce, kid, and url.
    �nonceT)�	omitempty�encoder�kid)r�urlc
CsFzt�|�WStjk
r@}zt�d�|���W5d}~XYnXdS)NzInvalid nonce: {0})�joseZdecode_b64joseZDeserializationError�format)�value�error�r�*/usr/lib/python3/dist-packages/acme/jws.pyrszHeader.nonceN)�__name__�
__module__�__qualname__�__doc__r�FieldZencode_b64joserrr�decoderrrrr
r
src@s2eZdZdZejjZeZ	ej
dde	�e	jd�ZdS)�	SignaturezGACME-specific Signature. Uses ACME-specific Header for customer fields.�headerT)r�defaultrN)
rrrrrr�_orig_slots�	__slots__rZ
header_clsrZ	from_jsonrrrrr
rs�rcs2eZdZdZeZejjZ	e
d�fdd�	�Z�ZS)�JWSzCACME-specific JWS. Includes none, url, and kid in protected header.Nc
s6|dk}tt|�j|||tdddddg�||||d�S)NrrrZjwk�alg)�keyrZprotectrrr�include_jwk)�superr�sign�	frozenset)�clsZpayloadrrrrrr��	__class__rr
r-s�zJWS.sign)NN)
rrrrrZ
signature_clsrrrr�classmethodr�
__classcell__rrr!r
r(s
r)rZjosepyrrrrrrrr
�<module>s