Test utility to expose protected method findJWK()
|
| FakeDynamicJWKSSignatureValidator (const std::shared_ptr< tenduke::jwk::JWKS > &keySet, const std::shared_ptr< const tenduke::jwk::JWKSDownloader > &jwksDownloader, const std::string &jwksUrl, tenduke::crypto::MessageDigest::Algorithm validationAlgorithm, bool requireValidAlgClaim) |
|
| FRIEND_TEST (DynamicJWKSSignatureValidatorTest, findJWK_should_return_key_from_cache_if_present) |
|
| FRIEND_TEST (DynamicJWKSSignatureValidatorTest, findJWK_should_refresh_keys_cache_if_key_not_present) |
|
| 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.
|
|
| JWKSSignatureValidator (const std::shared_ptr< tenduke::jwk::JWKS > &keySet, tenduke::crypto::MessageDigest::Algorithm validationAlgorithm=tenduke::crypto::MessageDigest::Algorithm::NONE, bool requireValidAlgClaim=true) |
| Constructs new instance.
|
|
bool | validate (const tenduke::json::JSONObject *jwtHeader, const char *payload, std::size_t payloadLength, const unsigned char *signatureBytes, std::size_t signatureLengthB) const override |
| Validates JWT signature.
|
|
|
class | DynamicJWKSSignatureValidatorTest |
|
|
std::unique_ptr< tenduke::jwk::JWK > | findJWK (const std::string &keyId) const override |
| Locates the key from cache by id.
|
|
virtual void | mergeKeys (const tenduke::jwk::JWKS &newKeySet) const |
| Merges keys from newKeySet to the contained keySet.
|
|
The documentation for this class was generated from the following file:
- core/core/test/jwk/DynamicJWKSSignatureValidator_test.cpp