|
10Duke Enterprise C++ Client
|
#include <JWTSignatureValidator.h>
Service for validating the JWT-signature.
Public Member Functions | |
| virtual bool | validate (const tenduke::json::JSONObject *jwtHeader, const char *payload, std::size_t payloadLength, const unsigned char *signatureBytes, std::size_t signatureLengthB) const =0 |
| Validates JWT signature. | |
|
pure virtual |
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 |
Implemented in JWKSSignatureValidator, tenduke::jwk::JWKSSignatureValidator, and tenduke::jwt::FixedKeyJWTSignatureValidator.