JSON Web Key¶
JSON Web Key.
-
class
acme.jose.jwk.JWK(**kwargs)[source]¶ Bases:
acme.jose.json_util.TypedJSONObjectWithFieldsJSON Web Key.
-
cryptography_key_types= ()¶ Subclasses should override.
-
required= NotImplemented¶ Required members of public key’s representation as defined by JWK/JWA.
-
thumbprint(hash_function=<class 'cryptography.hazmat.primitives.hashes.SHA256'>)¶ Compute JWK Thumbprint.
https://tools.ietf.org/html/rfc7638
Returns bytes:
-
public_key()¶ Generate JWK with public key.
For symmetric cryptosystems, this would return
self.
-
classmethod
load(data, password=None, backend=None)¶ Load serialized key as JWK.
Parameters: Raises errors.Error: if unable to deserialize, or unsupported JWK algorithm
Returns: JWK of an appropriate type.
Return type:
-
-
class
acme.jose.jwk.JWKES(**kwargs)[source]¶ Bases:
acme.jose.jwk.JWKES JWK.
Warning
This is not yet implemented!
-
class
acme.jose.jwk.JWKOct(**kwargs)[source]¶ Bases:
acme.jose.jwk.JWKSymmetric JWK.
-
class
acme.jose.jwk.JWKRSA(*args, **kwargs)[source]¶ Bases:
acme.jose.jwk.JWKRSA JWK.
Variables: key – cryptography.hazmat.primitives.rsa.RSAPrivateKeyorcryptography.hazmat.primitives.rsa.RSAPublicKeywrapped inComparableRSAKey