1#ifndef TENDUKE_JWK_DYNAMICJWKSVALIDATOR_H 
    2#define TENDUKE_JWK_DYNAMICJWKSVALIDATOR_H 
    5#include "./JWKSDownloader.h" 
    6#include "./JWKSSignatureValidator.h" 
    7#include "../crypto/MessageDigest.h" 
   33            const std::shared_ptr<tenduke::jwk::JWKS> &keySet,
 
   34            const std::shared_ptr<const tenduke::jwk::JWKSDownloader> &jwksDownloader,
 
   37            bool requireValidAlgClaim = 
true 
   48    std::unique_ptr<tenduke::jwk::JWK> 
findJWK(
const std::string &keyId) 
const override;
 
   51    const std::shared_ptr<const tenduke::jwk::JWKSDownloader> downloadJWKS;
 
   52    const std::string jwksURL;
 
 
 
DynamicJWKSSignatureValidator(const std::shared_ptr< tenduke::jwk::JWKS > &keySet, const std::shared_ptr< const tenduke::jwk::JWKSDownloader > &jwksDownloader, std::string jwksUrl, tenduke::crypto::MessageDigest::Algorithm validationAlgorithm=tenduke::crypto::MessageDigest::Algorithm::NONE, bool requireValidAlgClaim=true)
Constructs new instance.
Definition DynamicJWKSSignatureValidator.cpp:43
 
Algorithm
Supported algorithms.
Definition MessageDigest.h:24
 
std::unique_ptr< tenduke::jwk::JWK > findJWK(const std::string &keyId) const override
Locates the key from cache by id.
Definition DynamicJWKSSignatureValidator.cpp:14
 
DynamicJWKSSignatureValidator(const std::shared_ptr< tenduke::jwk::JWKS > &keySet, const std::shared_ptr< const tenduke::jwk::JWKSDownloader > &jwksDownloader, std::string jwksUrl, tenduke::crypto::MessageDigest::Algorithm validationAlgorithm=tenduke::crypto::MessageDigest::Algorithm::NONE, bool requireValidAlgClaim=true)
Constructs new instance.
Definition DynamicJWKSSignatureValidator.cpp:43
 
A tenduke::jwt::JWTSignatureValidator, which determines the validation key and algorithm based on the...
Definition JWKSSignatureValidator.h:24
 
Support for JSON Web Keys.
Definition DynamicJWKSSignatureValidator.h:9
 
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4