JWS

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.

class acme.jws.Header(**kwargs: Any)[source]

ACME-specific JOSE Header. Implements nonce, kid, and url.

class acme.jws.Signature(**kwargs: Any)[source]

ACME-specific Signature. Uses ACME-specific Header for customer fields.

header_cls

alias of acme.jws.Header

class acme.jws.JWS(**kwargs: Any)[source]

ACME-specific JWS. Includes none, url, and kid in protected header.

signature_cls

alias of acme.jws.Signature

classmethod sign(payload: bytes, key: josepy.jwk.JWK, alg: josepy.jwa.JWASignature, nonce: Optional[bytes], url: Optional[str] = None, kid: Optional[str] = None) josepy.jws.JWS[source]

Sign.