JwkPublicKey

@Serializable
data class JwkPublicKey(val kty: String = "EC", val crv: String = "P-256", val alg: String = "ES256", val x: String, val y: String)

JWK (JSON Web Key) format for EC public keys.

Standard format for representing public keys, widely supported across platforms and languages.

Constructors

Link copied to clipboard
constructor(kty: String = "EC", crv: String = "P-256", alg: String = "ES256", x: String, y: String)

Properties

Link copied to clipboard
val alg: String

Algorithm (e.g., "ES256")

Link copied to clipboard
val crv: String

Curve name (e.g., "P-256")

Link copied to clipboard
val kty: String

Key type (always "EC" for elliptic curve)

Link copied to clipboard
val x: String

Base64URL-encoded x coordinate

Link copied to clipboard
val y: String

Base64URL-encoded y coordinate