|
10Duke Enterprise C++ Client
|
#include <JWKSParser.h>
Parses JSON Web Key Set (JWKS)-document.
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::JWKS > | from (const std::string &jwksDocument) const |
| Parses JWKS-document and returns the keys as a list. | |
| 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.
| jsonParser | - |
| jwkParser | - |
|
virtual |
Parses JWKS-document and returns the keys as a list.
| jwksDocument | the JWKS-document |
| tenduke::crypto::CryptoException | if problems with the signing key |
| tenduke::json::JSONParsingException | when server response is not valid JSON |
| tenduke::jwks::JWKSException | when the JWKS-document is valid JWKS. |
Reimplemented in FakeJWKSParser, and tenduke::test::mocks::FakeJWKSParser.