JwkSerializer

Polymorphic serializer for Jwk values, dispatching to the appropriate concrete serializer based on the kty field in the JSON object.

Supports "RSA" (JwkRsaSerializer), "EC" (JwkEcSerializer), and "oct" (JwkOctSerializer) key types. Throws co.touchlab.kjwt.exception.MalformedJwkException if kty is absent, and co.touchlab.kjwt.exception.UnsupportedJwtException if the key type is not recognised.

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): Jwk
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: Jwk)