JsonWebKey represents a JSON Web Key as defined in RFC 7517.

interface BaseJWK {
    alg?: "EdDSA" | "ES256" | "ES384" | "ES512" | "ES256K" | "RS256";
    key_ops?: KeyOps[];
    kid?: string;
    kty: "RSA" | "EC" | "OKP";
    use?: "sig" | "enc";
}

Hierarchy (View Summary)

Properties

alg?: "EdDSA" | "ES256" | "ES384" | "ES512" | "ES256K" | "RS256"
key_ops?: KeyOps[]
kid?: string

The kid (key ID) parameter is used to match a specific key. Recommended that kid is set to the fingerprint of the public key.

kty: "RSA" | "EC" | "OKP"
use?: "sig" | "enc"