1#ifndef TENDUKE_JWK_JWKPARSER_H
2#define TENDUKE_JWK_JWKPARSER_H
5#include "crypto/PublicKey.h"
6#include "crypto/KeyFactory.h"
7#include "json/JSONObject.h"
8#include "utl/Base64Decoder.h"
14namespace tenduke {
namespace jwk {
31 std::shared_ptr<const tenduke::utl::Base64Decoder> base64Decoder,
32 std::shared_ptr<const tenduke::crypto::KeyFactory> keyFactory
60 std::shared_ptr<const tenduke::utl::Base64Decoder> base64;
61 std::shared_ptr<const tenduke::crypto::KeyFactory> createKey;
JSON object element.
Definition JSONObject.h:16
Parses JSON Web Key (JWK) from JSON.
Definition JWKParser.h:23
JWKParser(std::shared_ptr< const tenduke::utl::Base64Decoder > base64Decoder, std::shared_ptr< const tenduke::crypto::KeyFactory > keyFactory)
Constructs new instance.
Definition JWKParser.cpp:15
virtual std::unique_ptr< const tenduke::crypto::PublicKey > toPublicKey(const json::JSONObject &key) const
Converts given JWKS in JSONObject to a PublicKey.
Definition JWKParser.cpp:36
virtual JWK from(const json::JSONObject &key) const
Parses single JWK from tenduke::json::JSOObject.
Definition JWKParser.cpp:23
Describes a JWK, Json Web Key.
Definition JWK.h:17
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7