JWT-CPP v0.7.0
A header only library for creating and validating JSON Web Tokens (JWT) in C++
Loading...
Searching...
No Matches
jwt::algorithm::none Struct Reference

"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.
 

Detailed Description

"none" algorithm.

Returns and empty signature and checks if the given signature is empty. See RFC 7518 Section 3.6 for more information.

Member Function Documentation

◆ verify()

void jwt::algorithm::none::verify ( const std::string & ,
const std::string & signature,
std::error_code & ec ) const
inline

Check if the given signature is empty.

JWT's with "none" algorithm should not contain a signature.

Parameters
signatureSignature data to verify
ecerror_code filled with details about the error

The documentation for this struct was generated from the following file: