ns_crypto::JWT method resolve_verification_key_pem (protected)
<instance of ns_crypto::JWT
> resolve_verification_key_pem \
[ -alg alg ] [ -key key ] [ -jwk jwk ] [ -jwks jwks ] [ -kid kid ]
Defined in
- Switches:
- -alg (optional)
- -key (optional)
- -jwk (optional)
- -jwks (optional)
- -kid (optional)
- Testcases:
-
No testcase defined.
Source code:
if {$key ne ""} {
return $key
}
if {$jwk ne ""} {
return [:public_key_from_jwk $jwk]
}
if {$jwks ne ""} {
set jwk [:select_jwk_from_jwks -jwks $jwks -alg $alg -kid $kid]
return [:public_key_from_jwk $jwk]
}
error "missing verification key; provide -key, -jwk, or -jwks"
XQL Not present:Generic, PostgreSQL, Oracle
[
hide source ]
| [
make this the default ]