object
open_id_jwks
JSON Web Key Set parsing and key selection helpers.
Availability:
logtalk_load(open_id(loader))Author: Paulo Moura
Version: 1:0:0
Date: 2026-07-08
Compilation flags:
static, context_switching_callsRemarks:
(none)
Inherited public predicates:
Public predicates
select_key/3
Selects a matching verification key from a JWK Set for a JWT header.
Compilation flags:
staticTemplate:
select_key(JWKSet,Header,Key)Mode and number of proofs:
select_key(+term,+term,-term) - one_or_errorExceptions:
JWKSet is not a JSON Web Key Set with a keys list:domain_error(open_id_jwks,JWKSet)Header does not contain a valid alg member:domain_error(open_id_jwt_header,Header)No compatible key exists for
Header:existence_error(open_id_jwk,Header)header_algorithm/2
Extracts and validates the JWT header algorithm.
Compilation flags:
staticTemplate:
header_algorithm(Header,Algorithm)Mode and number of proofs:
header_algorithm(+term,-atom) - one_or_errorExceptions:
Header does not contain a valid alg member:domain_error(open_id_jwt_header,Header)header_key_id/2
Extracts the optional key identifier from a JWT header.
Compilation flags:
staticTemplate:
header_key_id(Header,KeyId)Mode and number of proofs:
header_key_id(+term,-atom) - zero_or_oneProtected predicates
(no local declarations; see entity ancestors if any)
Private predicates
(no local declarations; see entity ancestors if any)
Operators
(none)