#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.
◆ FixedKeyJWTSignatureValidator()
Constructs new instance.
- Parameters
-
◆ validate()
bool tenduke::jwt::FixedKeyJWTSignatureValidator::validate |
( |
const json::JSONObject * |
jwtHeader, |
|
|
const char * |
payload, |
|
|
std::size_t |
payloadLength, |
|
|
const unsigned char * |
signatureBytes, |
|
|
std::size_t |
signatureLengthB |
|
) |
| const |
|
overridevirtual |
Validates JWT signature.
- Parameters
-
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 |
- Returns
- true if the signature is valid, false if not
- Exceptions
-
Implements tenduke::jwt::JWTSignatureValidator.
The documentation for this class was generated from the following files: