10Duke Scale C++ Client
Loading...
Searching...
No Matches
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
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