1#ifndef TENDUKE_JWT_JWTPARSERFACTORY_H
2#define TENDUKE_JWT_JWTPARSERFACTORY_H
4#include "./JWTParser.h"
5#include "./JWTSignatureValidator.h"
7#include "crypto/MessageDigest.h"
8#include "crypto/PublicKey.h"
23 virtual std::unique_ptr<const tenduke::jwt::JWTParser>
create()
const = 0;
32 virtual std::unique_ptr<const tenduke::jwt::JWTParser>
create(
33 const std::shared_ptr<const tenduke::crypto::PublicKey> &publicKey,
43 virtual std::unique_ptr<const tenduke::jwt::JWTParser>
create(
const std::shared_ptr<tenduke::jwt::JWTSignatureValidator> &signatureValidator)
const = 0;
Algorithm
Supported algorithms.
Definition MessageDigest.h:24
Definition JWTParserFactory.h:15
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...
virtual std::unique_ptr< const tenduke::jwt::JWTParser > create() const =0
Creates tenduke::jwt::JWTParser, which does not validate signature.
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.
Support for JSON Web Tokens.
Definition DefaultJWTParser.h:11
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4