JsonWebKey Class

As defined in http://tools.ietf.org/html/draft-ietf-jose-json-web-key-18. All parameters are optional.

Inheritance
builtins.object
JsonWebKey

Constructor

JsonWebKey(**kwargs: Any)

Keyword-Only Parameters

Name Description
kid
str

Key identifier.

kty
key_ops

Allowed operations for the key

n

RSA modulus.

e

RSA public exponent.

d

RSA private exponent, or the D component of an EC private key.

dp

RSA private key parameter.

dq

RSA private key parameter.

qi

RSA private key parameter.

p

RSA secret prime.

q

RSA secret prime, with p < q.

k

Symmetric key.

t

HSM Token, used with 'Bring Your Own Key'.

crv

Elliptic curve name.

x

X component of an EC public key.

y

Y component of an EC public key.