# 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)

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

class acme.jws.Signature(**kwargs: Any)

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

  header_cls

    alias of `Header`

class acme.jws.JWS(**kwargs: Any)

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

  signature_cls

    alias of `Signature`

  classmethod sign(payload: bytes, key: JWK, alg: JWASignature, nonce: bytes | None, url: str | None = None, kid: str | None = None) → JWS

    Sign.