10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::test::unittests::FakeJWKSDownloader Class Reference

Detailed Description

Fake JWKSDownloader.

Inheritance diagram for tenduke::test::unittests::FakeJWKSDownloader:
tenduke::jwk::JWKSDownloader

Public Member Functions

std::unique_ptr< JWKSfrom (const std::string &url) const override
 Downloads and parses the JWKS-document.
 
- Public Member Functions inherited from tenduke::jwk::JWKSDownloader
 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.
 

Additional Inherited Members

- Protected Member Functions inherited from tenduke::jwk::JWKSDownloader
virtual std::string download (const std::string &url) const
 Downloads content of given URL and returns the payload as string.
 

Member Function Documentation

◆ from()

std::unique_ptr< JWKS > tenduke::test::unittests::FakeJWKSDownloader::from ( const std::string &  url) const
inlineoverridevirtual

Downloads and parses the JWKS-document.

Parameters
url-
Returns
-
Exceptions
`tenduke::jwk::JWKException`if download fails

Reimplemented from tenduke::jwk::JWKSDownloader.


The documentation for this class was generated from the following file: