10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::jwt::DefaultJWTParserFactory Class Reference

#include <DefaultJWTParserFactory.h>

Detailed Description

Default implementation of tenduke::jwt::JWTParserFactory.

Inheritance diagram for tenduke::jwt::DefaultJWTParserFactory:
tenduke::jwt::JWTParserFactory

Public Member Functions

 DefaultJWTParserFactory (const std::shared_ptr< const tenduke::utl::Base64Decoder > &base64Decoder, const std::shared_ptr< const tenduke::json::JSONParser > &jsonParser)
 Constructs new instance.
 
std::unique_ptr< const tenduke::jwt::JWTParsercreate () const override
 Creates tenduke::jwt::JWTParser, which does not validate signature.
 
std::unique_ptr< const tenduke::jwt::JWTParsercreate (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 digest algorithm.
 
std::unique_ptr< const tenduke::jwt::JWTParsercreate (const std::shared_ptr< tenduke::jwt::JWTSignatureValidator > &signatureValidator) const override
 Creates a tenduke::jwt::JWTParser, which validates the signature with given validator.
 

Constructor & Destructor Documentation

◆ DefaultJWTParserFactory()

tenduke::jwt::DefaultJWTParserFactory::DefaultJWTParserFactory ( const std::shared_ptr< const tenduke::utl::Base64Decoder > &  base64Decoder,
const std::shared_ptr< const tenduke::json::JSONParser > &  jsonParser 
)

Constructs new instance.

Parameters
base64Decoder-
jsonParser-

Member Function Documentation

◆ create() [1/3]

std::unique_ptr< const xdjwt::JWTParser > tenduke::jwt::DefaultJWTParserFactory::create ( ) const
overridevirtual

Creates tenduke::jwt::JWTParser, which does not validate signature.

Returns
-

Implements tenduke::jwt::JWTParserFactory.

◆ create() [2/3]

std::unique_ptr< const tenduke::jwt::JWTParser > tenduke::jwt::DefaultJWTParserFactory::create ( const std::shared_ptr< const tenduke::crypto::PublicKey > &  publicKey,
tenduke::crypto::MessageDigest::Algorithm  algorithm 
) const
overridevirtual

Creates a tenduke::jwt::JWTParser, which validates the signature with given public key and message digest algorithm.

Parameters
publicKey-
algorithm-
Returns
-

Implements tenduke::jwt::JWTParserFactory.

◆ create() [3/3]

std::unique_ptr< const tenduke::jwt::JWTParser > tenduke::jwt::DefaultJWTParserFactory::create ( const std::shared_ptr< tenduke::jwt::JWTSignatureValidator > &  signatureValidator) const
overridevirtual

Creates a tenduke::jwt::JWTParser, which validates the signature with given validator.

Parameters
signatureValidator-
Returns
-

Implements tenduke::jwt::JWTParserFactory.


The documentation for this class was generated from the following files: