10Duke Scale C++ Client
All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
JWKSParser.h
1#ifndef TENDUKE_JWK_JWKSPARSER_H
2#define TENDUKE_JWK_JWKSPARSER_H
3
4#include "./JWK.h"
5#include "./JWKS.h"
6#include "./JWKParser.h"
7
8#include "json/JSONParser.h"
9
10#include <memory>
11#include <vector>
12
13namespace tenduke { namespace jwk {
14
21
22public:
29 const std::shared_ptr<const tenduke::json::JSONParser> &jsonParser,
30 const std::shared_ptr<const tenduke::jwk::JWKParser> &jwkParser
31 );
32
41 virtual std::unique_ptr<tenduke::jwk::JWKS> from(const std::string &jwksDocument) const;
42
43private:
44 std::shared_ptr<const tenduke::json::JSONParser> parseJSON;
45 std::shared_ptr<const tenduke::jwk::JWKParser> parseJWK;
46};
47
48
49}}
50
51#endif //TENDUKE_JWK_JWKSPARSER_H
Parses JSON Web Key Set (JWKS)-document.
Definition JWKSParser.h:20
JWKSParser(const std::shared_ptr< const tenduke::json::JSONParser > &jsonParser, const std::shared_ptr< const tenduke::jwk::JWKParser > &jwkParser)
Constructs new instance.
Definition JWKSParser.cpp:10
virtual std::unique_ptr< tenduke::jwk::JWKS > from(const std::string &jwksDocument) const
Parses JWKS-document and returns the keys as a list.
Definition JWKSParser.cpp:17
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7