10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::jwt::JWTParserFactory Class Referenceabstract
Inheritance diagram for tenduke::jwt::JWTParserFactory:
tenduke::jwt::DefaultJWTParserFactory tenduke::test::mocks::JWTParserFactoryMock

Public Member Functions

virtual std::unique_ptr< const tenduke::jwt::JWTParsercreate () const =0
 Creates tenduke::jwt::JWTParser, which does not validate signature.
 
virtual std::unique_ptr< const tenduke::jwt::JWTParsercreate (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 digest algorithm.
 
virtual std::unique_ptr< const tenduke::jwt::JWTParsercreate (const std::shared_ptr< tenduke::jwt::JWTSignatureValidator > &signatureValidator) const =0
 Creates a tenduke::jwt::JWTParser, which validates the signature with given validator.
 

Member Function Documentation

◆ create() [1/3]

virtual std::unique_ptr< const tenduke::jwt::JWTParser > tenduke::jwt::JWTParserFactory::create ( ) const
pure virtual

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

Returns
-

Implemented in tenduke::jwt::DefaultJWTParserFactory.

◆ create() [2/3]

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

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

Parameters
publicKey-
algorithm-
Returns
-

Implemented in tenduke::jwt::DefaultJWTParserFactory.

◆ create() [3/3]

virtual std::unique_ptr< const tenduke::jwt::JWTParser > tenduke::jwt::JWTParserFactory::create ( const std::shared_ptr< tenduke::jwt::JWTSignatureValidator > &  signatureValidator) const
pure virtual

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

Parameters
signatureValidator-
Returns
-

Implemented in tenduke::jwt::DefaultJWTParserFactory.


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