useKeysFrom
Delegates key look-up to the given registry before consulting this parser's own keys.
Keys registered directly on this builder (via verifyWith or decryptWith) take precedence; the registry is only consulted when no local key matches. This makes it easy to share a central key store across multiple parsers while still allowing each parser to override individual keys locally.
val sharedRegistry = JwtProcessorRegistry()
// keys are added to sharedRegistry elsewhere
val parser = Jwt.parser()
.useKeysFrom(sharedRegistry)
.requireIssuer("my-app")
.build()Content copied to clipboard
Return
this builder for chaining
Parameters
registry
the JwtProcessorRegistry to fall back to when no local key matches