10Duke Scale C++ Client
Loading...
Searching...
No Matches
FixedKeyJWTSignatureValidator.h
1#ifndef TENDUKE_JWT_FIXEDKEYJWTSIGNATUREVALIDATOR_H
2#define TENDUKE_JWT_FIXEDKEYJWTSIGNATUREVALIDATOR_H
3
4#include "./JWTSignatureValidator.h"
5
6#include "crypto/MessageDigestVerifier.h"
7#include "crypto/MessageDigestVerifierFactory.h"
8
9namespace tenduke { namespace jwt {
10
18{
19public:
25 std::shared_ptr<const tenduke::crypto::MessageDigestVerifierFactory> verifierFactory
26 );
27
28
29// JWTSignatureValidator interface
30public:
31 bool validate(
32 const json::JSONObject *jwtHeader,
33 const char * payload,
34 std::size_t payloadLength,
35 const unsigned char * signatureBytes,
36 std::size_t signatureLengthB
37 ) const override;
38
39private:
40 const std::shared_ptr<const tenduke::crypto::MessageDigestVerifierFactory> newDigest;
41};
42
43}}
44
45#endif // TENDUKE_JWT_FIXEDKEYJWTSIGNATUREVALIDATOR_H
JSON object element.
Definition JSONObject.h:16
A tenduke::jwt::JWTSignatureValidator, which expects that the signature digestAlgorithm and verificat...
Definition FixedKeyJWTSignatureValidator.h:18
bool validate(const json::JSONObject *jwtHeader, const char *payload, std::size_t payloadLength, const unsigned char *signatureBytes, std::size_t signatureLengthB) const override
Validates JWT signature.
Definition FixedKeyJWTSignatureValidator.cpp:12
Service for validating the JWT-signature.
Definition JWTSignatureValidator.h:15
Support for JSON Web Tokens.
Definition DefaultJWTParser.h:11
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7