10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
DynamicJWKSSignatureValidator.h
1
#ifndef TENDUKE_JWK_DYNAMICJWKSVALIDATOR_H
2
#define TENDUKE_JWK_DYNAMICJWKSVALIDATOR_H
3
4
#include "./JWKS.h"
5
#include "./JWKSDownloader.h"
6
#include "./JWKSSignatureValidator.h"
7
#include "../crypto/MessageDigest.h"
8
9
namespace
tenduke
{
namespace
jwk
{
10
17
class
DynamicJWKSSignatureValidator
:
public
tenduke::jwk::JWKSSignatureValidator
18
{
19
public
:
32
DynamicJWKSSignatureValidator
(
33
const
std::shared_ptr<tenduke::jwk::JWKS> &keySet,
34
const
std::shared_ptr<const tenduke::jwk::JWKSDownloader> &jwksDownloader,
35
std::string jwksUrl,
36
tenduke::crypto::MessageDigest::Algorithm
validationAlgorithm = tenduke::crypto::MessageDigest::Algorithm::NONE,
37
bool
requireValidAlgClaim =
true
38
);
39
40
protected
:
48
std::unique_ptr<tenduke::jwk::JWK>
findJWK
(
const
std::string &keyId)
const override
;
49
50
private
:
51
const
std::shared_ptr<const tenduke::jwk::JWKSDownloader> downloadJWKS;
52
const
std::string jwksURL;
53
};
54
55
}}
56
57
#endif
//TENDUKE_JWK_DYNAMICJWKSVALIDATOR_H
tenduke::crypto::MessageDigest::Algorithm
Algorithm
Supported algorithms.
Definition
MessageDigest.h:24
tenduke::jwk::DynamicJWKSSignatureValidator::findJWK
std::unique_ptr< tenduke::jwk::JWK > findJWK(const std::string &keyId) const override
Locates the key from cache by id.
Definition
DynamicJWKSSignatureValidator.cpp:14
tenduke::jwk::DynamicJWKSSignatureValidator::DynamicJWKSSignatureValidator
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
tenduke::jwk::JWKSSignatureValidator
A tenduke::jwt::JWTSignatureValidator, which determines the validation key and algorithm based on the...
Definition
JWKSSignatureValidator.h:24
tenduke::jwk
Support for JSON Web Keys.
Definition
DynamicJWKSSignatureValidator.h:9
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
core
src
jwk
DynamicJWKSSignatureValidator.h
Generated by
1.17.0