JWK API

class jose.jwk.HMACKey(key, algorithm)

Performs signing and verification operations using HMAC and the specified hash function.

SHA256(*, usedforsecurity=True)

Returns a sha256 hash object; optionally initialized with a string

SHA384(*, usedforsecurity=True)

Returns a sha384 hash object; optionally initialized with a string

SHA512(*, usedforsecurity=True)

Returns a sha512 hash object; optionally initialized with a string

jose.jwk.construct(key_data, algorithm=None)

Construct a Key object for the given algorithm with the given key_data.