10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
JWTParserFactory.h
1
#ifndef TENDUKE_JWT_JWTPARSERFACTORY_H
2
#define TENDUKE_JWT_JWTPARSERFACTORY_H
3
4
#include "./JWTParser.h"
5
#include "./JWTSignatureValidator.h"
6
7
#include "crypto/MessageDigest.h"
8
#include "crypto/PublicKey.h"
9
10
#include <memory>
11
12
13
namespace
tenduke
{
namespace
jwt
{
14
15
class
JWTParserFactory
{
16
public
:
17
virtual
~JWTParserFactory
() =
default
;
18
23
virtual
std::unique_ptr<const tenduke::jwt::JWTParser>
create
()
const
= 0;
24
32
virtual
std::unique_ptr<const tenduke::jwt::JWTParser>
create
(
33
const
std::shared_ptr<const tenduke::crypto::PublicKey> &publicKey,
34
tenduke::crypto::MessageDigest::Algorithm
algorithm
35
36
)
const
= 0;
37
43
virtual
std::unique_ptr<const tenduke::jwt::JWTParser>
create
(
const
std::shared_ptr<tenduke::jwt::JWTSignatureValidator> &signatureValidator)
const
= 0;
44
};
45
46
}}
47
48
#endif
//TENDUKE_JWT_JWTPARSERFACTORY_H
tenduke::crypto::MessageDigest::Algorithm
Algorithm
Supported algorithms.
Definition
MessageDigest.h:24
tenduke::jwt::JWTParserFactory
Definition
JWTParserFactory.h:15
tenduke::jwt::JWTParserFactory::create
virtual std::unique_ptr< const tenduke::jwt::JWTParser > create(const std::shared_ptr< const tenduke::crypto::PublicKey > &publicKey, tenduke::crypto::MessageDigest::Algorithm algorithm) const =0
Creates a tenduke::jwt::JWTParser, which validates the signature with given public key and message di...
tenduke::jwt::JWTParserFactory::create
virtual std::unique_ptr< const tenduke::jwt::JWTParser > create() const =0
Creates tenduke::jwt::JWTParser, which does not validate signature.
tenduke::jwt::JWTParserFactory::create
virtual std::unique_ptr< const tenduke::jwt::JWTParser > create(const std::shared_ptr< tenduke::jwt::JWTSignatureValidator > &signatureValidator) const =0
Creates a tenduke::jwt::JWTParser, which validates the signature with given validator.
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
JWTParserFactory.h
Generated by
1.17.0