1#ifndef TENDUKE_JWT_DEFAULTJWTPARSERFACTORY_H 
    2#define TENDUKE_JWT_DEFAULTJWTPARSERFACTORY_H 
    4#include "./JWTParserFactory.h" 
    6#include "json/JSONParser.h" 
    7#include "utl/Base64Decoder.h" 
   23            const std::shared_ptr<const tenduke::utl::Base64Decoder> &base64Decoder,
 
   24            const std::shared_ptr<const tenduke::json::JSONParser> &jsonParser
 
   29    std::unique_ptr<const tenduke::jwt::JWTParser> 
create() 
const override;
 
   30    std::unique_ptr<const tenduke::jwt::JWTParser> 
create(
 
   31        const std::shared_ptr<const tenduke::crypto::PublicKey> &publicKey,
 
   34    std::unique_ptr<const tenduke::jwt::JWTParser> 
create(
const std::shared_ptr<tenduke::jwt::JWTSignatureValidator> &signatureValidator) 
const override;
 
   37    std::shared_ptr<const tenduke::utl::Base64Decoder> base64Decoder;
 
   38    std::shared_ptr<const tenduke::json::JSONParser> jsonParser;
 
 
Algorithm
Supported algorithms.
Definition MessageDigest.h:24
 
DefaultJWTParserFactory(const std::shared_ptr< const tenduke::utl::Base64Decoder > &base64Decoder, const std::shared_ptr< const tenduke::json::JSONParser > &jsonParser)
Constructs new instance.
Definition DefaultJWTParserFactory.cpp:49
 
std::unique_ptr< const tenduke::jwt::JWTParser > create(const std::shared_ptr< tenduke::jwt::JWTSignatureValidator > &signatureValidator) const override
Creates a tenduke::jwt::JWTParser, which validates the signature with given validator.
 
std::unique_ptr< const tenduke::jwt::JWTParser > create() const override
Creates tenduke::jwt::JWTParser, which does not validate signature.
Definition DefaultJWTParserFactory.cpp:28
 
std::unique_ptr< const tenduke::jwt::JWTParser > create(const std::shared_ptr< const tenduke::crypto::PublicKey > &publicKey, tenduke::crypto::MessageDigest::Algorithm algorithm) const override
Creates a tenduke::jwt::JWTParser, which validates the signature with given public key and message di...
 
Definition JWTParserFactory.h:15
 
Support for JSON Web Tokens.
Definition DefaultJWTParser.h:11
 
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4