1#ifndef TENDUKE_TEST_MOCKS_JWKSPARSERFAKE_H 
    2#define TENDUKE_TEST_MOCKS_JWKSPARSERFAKE_H 
    4#include "jwk/JWKSParser.h" 
    6namespace tenduke { 
namespace test { 
namespace mocks {
 
   11    FakeJWKSParser() : 
JWKSParser(
nullptr, 
nullptr) {}
 
   13    std::unique_ptr<tenduke::jwk::JWKS> 
from(
const std::string &jwksDocument)
 
   17        if (returnValue != 
nullptr) {
 
   18            jwks->merge(*returnValue);
 
 
   23    std::shared_ptr<tenduke::jwk::JWKS> returnValue;
 
   25    static std::shared_ptr<FakeJWKSParser> createShared()
 
   27        return std::make_shared<FakeJWKSParser>();
 
 
Parses JSON Web Key Set (JWKS)-document.
Definition JWKSParser.h:20
 
JWKSParser(const std::shared_ptr< const tenduke::json::JSONParser > &jsonParser, const std::shared_ptr< const tenduke::jwk::JWKParser > &jwkParser)
Constructs new instance.
Definition JWKSParser.cpp:10
 
JSON Web Key Set, a container for one or more tenduke::jwk::JWKs, indexed by the JWK key ID.
Definition JWKS.h:17
 
std::unique_ptr< tenduke::jwk::JWKS > from(const std::string &jwksDocument) const override
Parses JWKS-document and returns the keys as a list.
Definition FakeJWKSParser.h:13
 
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4