a `4@sFdZddlZGdddejZGdddejZGdddejZdS) zACME-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@sLeZdZdZejddejdZejdddZejdddZ ej dd Zd S) Headerz?ACME-specific JOSE Header. Implements nonce, kid, and url. nonceT) omitemptyencoderkid)rurlc CsHz t|WStjyB}ztd|WYd}~n d}~00dS)NzInvalid nonce: {0})joseZdecode_b64joseZDeserializationErrorformat)valueerrorr */usr/lib/python3/dist-packages/acme/jws.pyrs z Header.nonceN) __name__ __module__ __qualname____doc__rFieldZencode_b64joserrrdecoderr r r r r s rc@s2eZdZdZejjZeZ ej dde e j dZ dS) SignaturezGACME-specific Signature. Uses ACME-specific Header for customer fields.headerT)rdefaultrN) rrrrrr _orig_slots __slots__rZ header_clsrZ from_jsonrr r r r rsrcs2eZdZdZeZejjZ e dfdd Z Z S)JWSzCACME-specific JWS. Includes none, url, and kid in protected header.Nc s0|du}tt|j|||tgd||||dS)N)rrrZjwkalg)keyrZprotectrrr include_jwk)superrsign 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 s