Jwk

interface Jwk

A JSON web key.

Struct that contains info for a JWK. A list of them for different kinds can be retrieved from the JWK endpoint (for example, https://www.googleapis.com/oauth2/v3/certs). The JWK is used to verify the JWT token.

Properties

Link copied to clipboard
abstract val alg: String?

Algorithm parameter, https://datatracker.ietf.org/doc/html/rfc7517#section-4.4.

Link copied to clipboard
abstract val e: String?

RSA public exponent, https://datatracker.ietf.org/doc/html/rfc7517#section-9.3.

Link copied to clipboard
abstract val kty: String?

Key type parameter, https://datatracker.ietf.org/doc/html/rfc7517#section-4.1.

Link copied to clipboard
abstract val n: String?

RSA modulus, https://datatracker.ietf.org/doc/html/rfc7517#section-9.3.

Link copied to clipboard

Returns the field-presence view for this Jwk instance.

Functions

Link copied to clipboard
Link copied to clipboard
fun Jwk.copy(body: <Error class: unknown class>.() -> Unit = {}): Jwk

Copies the original message, including unknown fields.