findKey

open fun findKey(kid: String): <Error class: unknown class><<Error class: unknown class>>(source)

Finds a key associated with the provided kid value and returns it as an Optional.

Return

An Optional containing the key as a Secret object, or an empty Optional if no key is found.

Parameters

kid

The kid value to search for.