Identifier

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

Identifies an EncryptionKey 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: EncryptionAlgorithm, keyId: String?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

the JWE key-encryption 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