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

#include <DefaultJWTParser.h>

Detailed Description

Default implementation of tenduke::jwt::JWTParser.

Inheritance diagram for tenduke::jwt::DefaultJWTParser:
tenduke::jwt::JWTParser

Public Member Functions

 DefaultJWTParser (std::shared_ptr< const tenduke::json::JSONParser > jsonParser, std::shared_ptr< const tenduke::utl::Base64Decoder > base64Decoder, std::shared_ptr< const tenduke::jwt::JWTSignatureValidator > signatureValidator)
 Constructs new instance.
 
tenduke::jwt::JWT from (const std::string &value) const override
 Parses tenduke::jwt::JWT from given string.
 

Constructor & Destructor Documentation

◆ DefaultJWTParser()

tenduke::jwt::DefaultJWTParser::DefaultJWTParser ( std::shared_ptr< const tenduke::json::JSONParser jsonParser,
std::shared_ptr< const tenduke::utl::Base64Decoder base64Decoder,
std::shared_ptr< const tenduke::jwt::JWTSignatureValidator signatureValidator 
)

Constructs new instance.

Parameters
jsonParser-
base64Decoder-
signatureValidator-

Member Function Documentation

◆ from()

xdjwt::JWT tenduke::jwt::DefaultJWTParser::from ( const std::string &  value) const
overridevirtual

Parses tenduke::jwt::JWT from given string.

Exceptions
tenduke::jwt::JWTValidationExceptionif validation of the JWT signature fails
tenduke::jwt::JWTParsingException(possibly some subclass) if parsing fails.
std::nested_exceptionif there is nested cause. Following nested causes are known:

Implements tenduke::jwt::JWTParser.


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