10Duke Enterprise C++ SDK
Toggle main menu visibility
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
13
namespace
tenduke
{
namespace
jwk
{
14
20
class
JWKSParser
{
21
22
public
:
23
virtual
~JWKSParser
() =
default
;
24
30
JWKSParser
(
31
const
std::shared_ptr<const tenduke::json::JSONParser> &jsonParser,
32
const
std::shared_ptr<const tenduke::jwk::JWKParser> &jwkParser
33
);
34
43
virtual
std::unique_ptr<tenduke::jwk::JWKS>
from
(
const
std::string &jwksDocument)
const
;
44
45
private
:
46
std::shared_ptr<const tenduke::json::JSONParser> parseJSON;
47
std::shared_ptr<const tenduke::jwk::JWKParser> parseJWK;
48
};
49
50
51
}}
52
53
#endif
//TENDUKE_JWK_JWKSPARSER_H
JWKSParser::JWKSParser
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:19
tenduke::jwk::JWKSParser::JWKSParser
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:19
tenduke::jwk::JWKSParser::from
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:26
tenduke::jwk
Support for JSON Web Keys.
Definition
DynamicJWKSSignatureValidator.h:13
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
core
src
jwk
JWKSParser.h
Generated by
1.17.0