JWT-CPP v0.7.0
A header only library for creating and validating JSON Web Tokens (JWT) in C++
|
"none" algorithm. More...
#include <jwt.h>
Public Member Functions | |
std::string | sign (const std::string &, std::error_code &ec) const |
Return an empty string. | |
void | verify (const std::string &, const std::string &signature, std::error_code &ec) const |
Check if the given signature is empty. | |
std::string | name () const |
Get algorithm name. | |
"none" algorithm.
Returns and empty signature and checks if the given signature is empty. See RFC 7518 Section 3.6 for more information.
|
inline |
Check if the given signature is empty.
JWT's with "none" algorithm should not contain a signature.
signature | Signature data to verify |
ec | error_code filled with details about the error |