Jwk
Sealed class representing a JSON Web Key (JWK) as defined in RFC 7517.
A JWK is a JSON object that represents a cryptographic key. The three supported key types are:
Rsa — RSA public or private key (
kty = "RSA").Ec — Elliptic Curve public or private key (
kty = "EC").Oct — Symmetric (octet sequence) key (
kty = "oct").
Each subtype exposes its own required parameters as well as the common parameters defined in RFC 7517 §4 (use, key_ops, alg, kid). JWK Thumbprints (RFC 7638) are available through the thumbprint property.
See also
Inheritors
Types
Link copied to clipboard
Link copied to clipboard
data class Rsa(val n: String, val e: String, val d: String? = null, val p: String? = null, val q: String? = null, val dp: String? = null, val dq: String? = null, val qi: String? = null, val use: String? = null, val keyOps: List<String>? = null, val alg: String? = null, val kid: String? = null) : Jwk
Link copied to clipboard
Base class for typed JWK Thumbprints as defined by RFC 7638.