10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
DefaultJWTParser.h
1
#ifndef TENDUKE_JWT_DEFAULTJWTPARSER_H
2
#define TENDUKE_JWT_DEFAULTJWTPARSER_H
3
4
#include "./JWTParser.h"
5
#include "./JWTSignatureValidator.h"
6
#include "json/JSONParser.h"
7
#include "utl/Base64Decoder.h"
8
9
#include <memory>
10
11
namespace
tenduke
{
namespace
jwt
{
12
16
class
DefaultJWTParser
:
public
tenduke::jwt::JWTParser
17
{
18
public
:
25
DefaultJWTParser
(
26
std::shared_ptr<const tenduke::json::JSONParser> jsonParser,
27
std::shared_ptr<const tenduke::utl::Base64Decoder> base64Decoder,
28
std::shared_ptr<const tenduke::jwt::JWTSignatureValidator> signatureValidator
29
);
30
31
// JWTParser interface
32
public
:
33
tenduke::jwt::JWT
from
(
const
std::string &value)
const override
;
34
35
private
:
36
const
std::shared_ptr<const tenduke::json::JSONParser> parseJson;
37
const
std::shared_ptr<const tenduke::utl::Base64Decoder> base64;
38
const
std::shared_ptr<const tenduke::jwt::JWTSignatureValidator> signature;
39
};
40
41
}}
42
43
#endif
// TENDUKE_JWT_DEFAULTJWTPARSER_H
tenduke::jwt::DefaultJWTParser::from
tenduke::jwt::JWT from(const std::string &value) const override
Parses tenduke::jwt::JWT from given string.
Definition
DefaultJWTParser.cpp:33
tenduke::jwt::DefaultJWTParser::DefaultJWTParser
DefaultJWTParser(std::shared_ptr< const tenduke::json::JSONParser > jsonParser, std::shared_ptr< const tenduke::utl::Base64Decoder > base64Decoder, std::shared_ptr< const tenduke::jwt::JWTSignatureValidator > signatureValidator)
Constructs new instance.
Definition
DefaultJWTParser.cpp:24
tenduke::jwt::JWTParser
Parses JWT.
Definition
JWTParser.h:15
tenduke::jwt::JWT
Very simple JWT implementation.
Definition
JWT.h:32
tenduke::jwt
Support for JSON Web Tokens.
Definition
DefaultJWTParser.h:11
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
core
src
jwt
DefaultJWTParser.h
Generated by
1.17.0