|
10Duke Enterprise C++ SDK
|
#include <FixedKeyJWTSignatureValidator.h>
A tenduke::jwt::JWTSignatureValidator, which expects that the signature digestAlgorithm and verification key are pre-configured.
The class uses tenduke::crypto::MessageDigestFactory to create the actual validator.
Public Member Functions | |
| FixedKeyJWTSignatureValidator (std::shared_ptr< const tenduke::crypto::MessageDigestVerifierFactory > verifierFactory) | |
| Constructs new instance. | |
| 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. | |
|
explicit |
Constructs new instance.
| verifierFactory | - |
|
overridevirtual |
Validates JWT signature.
| jwtHeader | JWT-header, can be e.g. used to determine the key and digestAlgorithm used |
| payload | JWT-payload to verify |
| payloadLength | length of the payload |
| signatureBytes | the signature |
| signatureLengthB | the signature length |
| tenduke::crypto::CryptoException | if there are are cryptographic issues |
Implements tenduke::jwt::JWTSignatureValidator.