JSON Web Algorithms

JSON Web Algorithm.

https://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-40

class acme.jose.jwa.JWA[source]

Bases: acme.jose.interfaces.JSONDeSerializable

JSON Web Algorithm.

class acme.jose.jwa.JWASignature(name)[source]

Bases: acme.jose.jwa.JWA, collections.abc.Hashable

JSON Web Signature Algorithm.

classmethod register(signature_cls)[source]

Register class for JSON deserialization.

sign(key, msg)[source]

Sign the msg using key.

verify(key, msg, sig)[source]

Verify the msg` and ``sig using key.