Companion

object Companion

Functions

Link copied to clipboard

Verifies tokens using a remote JWKS endpoint at url.

Link copied to clipboard

Verifies tokens using a public key parsed from a PEM string.

Link copied to clipboard

Verifies tokens using a public key loaded from a PEM file.

Link copied to clipboard
fun publicKey(publicKey: PublicKey, algorithms: Set<String> = emptySet()): JwtKeySource

Verifies tokens using the given local publicKey (RSA or EC).

Link copied to clipboard
fun secret(secret: String, algorithm: String = "HS256"): JwtKeySource

Verifies tokens using an HMAC secret string.

Link copied to clipboard
fun secretBytes(bytes: ByteArray, algorithm: String = "HS256"): JwtKeySource

Verifies tokens using raw HMAC secret bytes.