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"
11namespace tenduke {
namespace jwk {
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;
Service to download and parse JSON Web Key Set (JWKS).
Definition JWKSDownloader.h:17
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:27
virtual std::string download(const std::string &url) const
Downloads content of given URL and returns the payload as string.
Definition JWKSDownloader.cpp:12
virtual std::unique_ptr< tenduke::jwk::JWKS > from(const std::string &url) const
Downloads and parses the JWKS-document.
Definition JWKSDownloader.cpp:6
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7