Identifier

data class Identifier(val algorithm: SigningAlgorithm, val keyId: String?)(source)

Identifies a SigningKey within a co.touchlab.kjwt.model.registry.DefaultJwtProcessorRegistry by algorithm and optional key ID.

The combination of algorithm and keyId must be unique within a registry. When keyId is null the key acts as a catch-all for its algorithm (matched after any exact-kid key during look-up).

Constructors

Link copied to clipboard
constructor(algorithm: SigningAlgorithm, keyId: String?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

the JWS algorithm this key is associated with

Link copied to clipboard

the optional kid header value used to select this key; null matches any token for the given algorithm that has no more specific key registered