JwkThumbprintSerializer

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

Supports "RSA" (JwkRsaThumbprintSerializer), "EC" (JwkEcThumbprintSerializer), and "oct" (JwkOctThumbprintSerializer) 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.Thumbprint
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: Jwk.Thumbprint)