HEX
Server: LiteSpeed
System: Linux ws4.angoweb.net 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: tswangoe (2287)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
Upload Files
File: //proc/self/root/usr/lib/python3.9/site-packages/acme/__pycache__/jws.cpython-39.pyc
a

}|�g
�@sRdZddlmZddlZGdd�dej�ZGdd�dej�ZGdd	�d	ej�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.
�)�OptionalNc@szeZdZUdZejddejd�Zee	e
d<ejddd�Zeee
d<ejddd�Z
eee
d<ejee	d�d	d
��ZdS)�Headerz?ACME-specific JOSE Header. Implements nonce, kid, and url.
    �nonceT)�	omitempty�encoder�kid)r�url)�value�returnc
CsHzt�|�WStjyB}zt�d�|���WYd}~n
d}~00dS)NzInvalid nonce: {0})�joseZdecode_b64joseZDeserializationError�format)r	�error�r�,/usr/lib/python3.9/site-packages/acme/jws.pyrszHeader.nonceN)�__name__�
__module__�__qualname__�__doc__r�fieldZencode_b64joserr�bytes�__annotations__r�strr�decoderrrrrrs
rc@s<eZdZUdZejjZeZ	ej
dde	�e	jd�Zee
d<dS)�	SignaturezGACME-specific Signature. Uses ACME-specific Header for customer fields.�headerT)r�defaultrN)rrrrrr�_orig_slots�	__slots__rZ
header_clsrZ	from_jsonrrrrrrrs
�rc
sVeZdZdZeZejjZ	e
deejej
eeeeeeejd��fdd�
�Z�ZS)�JWSzCACME-specific JWS. Includes none, url, and kid in protected header.N)�payload�key�algrrrr
c
s,|du}t�j|||tgd��||||d�S)N)rrrZjwkr!)r r!Zprotectrrr�include_jwk)�super�sign�	frozenset)�clsrr r!rrrr"��	__class__rrr$1s
�zJWS.sign)NN)rrrrrZ
signature_clsrrrr�classmethodrZJWKZJWASignaturerrr$�
__classcell__rrr'rr,s��r)r�typingrZjosepyrrrrrrrr�<module>s