10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::jwk::JWKSParser Class Reference

#include <JWKSParser.h>

Detailed Description

Parses JSON Web Key Set (JWKS)-document.

See https://www.rfc-editor.org/rfc/rfc7517

Inheritance diagram for tenduke::jwk::JWKSParser:
tenduke::test::mocks::FakeJWKSParser

Public Member Functions

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

Constructor & Destructor Documentation

◆ JWKSParser()

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.

Parameters
jsonParser-
jwkParser-

Member Function Documentation

◆ from()

std::unique_ptr< xdjwk::JWKS > tenduke::jwk::JWKSParser::from ( const std::string &  jwksDocument) const
virtual

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 in tenduke::test::mocks::FakeJWKSParser.


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