10Duke Enterprise C++ Client
|
#include <DefaultJWTParser.h>
Default implementation of 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. | |
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.
jsonParser | - |
base64Decoder | - |
signatureValidator | - |
|
overridevirtual |
Parses tenduke::jwt::JWT from given string.
tenduke::jwt::JWTValidationException | if validation of the JWT signature fails |
tenduke::jwt::JWTParsingException | (possibly some subclass) if parsing fails. |
std::nested_exception | if there is nested cause. Following nested causes are known:
|
Implements tenduke::jwt::JWTParser.