10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::test::mocks::FakeJWKSParser Class Reference
Inheritance diagram for tenduke::test::mocks::FakeJWKSParser:
tenduke::jwk::JWKSParser

Public Member Functions

std::unique_ptr< tenduke::jwk::JWKSfrom (const std::string &jwksDocument) const override
 Parses JWKS-document and returns the keys as a list.
 
- Public Member Functions inherited from tenduke::jwk::JWKSParser
 JWKSParser (const std::shared_ptr< const tenduke::json::JSONParser > &jsonParser, const std::shared_ptr< const tenduke::jwk::JWKParser > &jwkParser)
 Constructs new instance.
 

Static Public Member Functions

static std::shared_ptr< FakeJWKSParsercreateShared ()
 

Public Attributes

std::shared_ptr< tenduke::jwk::JWKSreturnValue
 

Member Function Documentation

◆ from()

std::unique_ptr< tenduke::jwk::JWKS > tenduke::test::mocks::FakeJWKSParser::from ( const std::string &  jwksDocument) const
inlineoverridevirtual

Parses JWKS-document and returns the keys as a list.

Parameters
jwksDocumentthe JWKS-document
Returns
the keys in the document as JSON Web Key Set (JWKS)
Exceptions
tenduke::crypto::CryptoExceptionif problems with the signing key
tenduke::json::JSONParsingExceptionwhen server response is not valid JSON
tenduke::jwks::JWKSExceptionwhen the JWKS-document is valid JWKS.

Reimplemented from tenduke::jwk::JWKSParser.


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