DefaultJwtProcessorRegistry

Default in-memory implementation of JwtProcessorRegistry.

Signing processors are keyed by (SigningAlgorithm, optional key ID) and encryption processors by (EncryptionAlgorithm, optional key ID). Look-up follows the order defined by JwtProcessorRegistry: exact match, algorithm-only fallback, then delegate.

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The registry to fall back to when a key is not found locally.

Functions

Link copied to clipboard
open override fun delegateTo(other: JwtProcessorRegistry)

Sets other as the delegate registry for this registry.

Link copied to clipboard
open override fun findBestJweProcessor(algorithm: EncryptionAlgorithm, keyId: String?): BaseJweProcessor?

Returns the best available encryption key for algorithm and the optional keyId.

Link copied to clipboard
open override fun findBestJwsProcessor(algorithm: SigningAlgorithm, keyId: String?): BaseJwsProcessor?

Returns the best available signing key for algorithm and the optional keyId.

Link copied to clipboard
open override fun registerJweProcessor(processor: BaseJweProcessor, keyId: String?)

Registers a BaseJweProcessor in this registry under its algorithm and optional keyId.

Link copied to clipboard
open override fun registerJwsProcessor(processor: BaseJwsProcessor, keyId: String?)

Registers a BaseJwsProcessor in this registry under its algorithm and optional keyId.