Spade

Mini Shell

Directory:~$ /proc/self/root/usr/lib/python2.7/site-packages/acme/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ //proc/self/root/usr/lib/python2.7/site-packages/acme/jws.pyo

�
���_c@sadZddlZdejfd��YZdejfd��YZdejfd��YZdS(	s�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.
i����NtHeadercBsheZdZejddedej�Zejdde�Zejdde�Z	ej
d��ZRS(s?ACME-specific JOSE Header. Implements nonce, kid, and url.
    tnoncet	omitemptytencodertkidturlcCsFytj|�SWn.tjk
rA}tjdj|���nXdS(NsInvalid nonce:
{0}(tjosetdecode_b64josetDeserializationErrortformat(tvalueterror((s,/usr/lib/python2.7/site-packages/acme/jws.pyRs(t__name__t
__module__t__doc__RtFieldtTruetencode_b64joseRRRtdecoder(((s,/usr/lib/python2.7/site-packages/acme/jws.pyR
s
t	SignaturecBsGeZdZejjZeZej	dde
de�dej�ZRS(sGACME-specific Signature. Uses ACME-specific
Header for customer
fields.theaderRtdefaultR(
RR
RRRt_orig_slotst	__slots__Rt
header_clsRRt	from_jsonR(((s,/usr/lib/python2.7/site-packages/acme/jws.pyRstJWScBs5eZdZeZejjZe	ddd��ZRS(sCACME-specific
JWS. Includes none, url, and kid in protected
header.cCsa|dk}tt|�j|d|d|dtdddddg�d|d|d|d|�S(	NtkeytalgtprotectRRRtjwktinclude_jwk(tNonetsuperRtsignt	frozenset(tclstpayloadRRRRRR((s,/usr/lib/python2.7/site-packages/acme/jws.pyR"-s
!N(RR
RRt
signature_clsRRRRtclassmethodR
R"(((s,/usr/lib/python2.7/site-packages/acme/jws.pyR(s
(RtjosepyRRRR(((s,/usr/lib/python2.7/site-packages/acme/jws.pyt<module>s