1#ifndef TENDUKE_JWK_JWKSDOWNLOADER_H 
    2#define TENDUKE_JWK_JWKSDOWNLOADER_H 
    4#include "http/HTTPClient.h" 
    5#include "http/HTTPResponseToException.h" 
    7#include "jwk/JWKSParser.h" 
   28            const std::shared_ptr<const tenduke::http::HTTPClient> &http,
 
   29            const std::shared_ptr<const tenduke::jwk::JWKSParser> &parseJwks,
 
   30            const std::shared_ptr<const tenduke::http::HTTPResponseToException> &throwException
 
   39    virtual std::unique_ptr<tenduke::jwk::JWKS> 
from(
const std::string &url) 
const;
 
   47    virtual std::string 
download(
const std::string &url) 
const;
 
   50    const std::shared_ptr<const tenduke::http::HTTPClient> http;
 
   51    const std::shared_ptr<const tenduke::jwk::JWKSParser> parseJWKS;
 
   52    const std::shared_ptr<const tenduke::http::HTTPResponseToException> throwException;
 
 
JWKSDownloader(const std::shared_ptr< const tenduke::http::HTTPClient > &http, const std::shared_ptr< const tenduke::jwk::JWKSParser > &parseJwks, const std::shared_ptr< const tenduke::http::HTTPResponseToException > &throwException)
Constructs new instance.
Definition JWKSDownloader.cpp:39
 
virtual std::string download(const std::string &url) const
Downloads content of given URL and returns the payload as string.
Definition JWKSDownloader.cpp:17
 
virtual std::unique_ptr< tenduke::jwk::JWKS > from(const std::string &url) const
Downloads and parses the JWKS-document.
Definition JWKSDownloader.cpp:11
 
Support for JSON Web Keys.
Definition DynamicJWKSSignatureValidator.h:9
 
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4