Conscience Core
Public Member Functions | List of all members
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. More...
 
void verify (const std::string &, const std::string &signature, std::error_code &ec) const
 Check if the given signature is empty. More...
 
std::string name () const
 Get algorithm name. More...
 

Detailed Description

"none" algorithm.

Returns and empty signature and checks if the given signature is empty.

Member Function Documentation

◆ name()

std::string jwt::algorithm::none::name ( ) const
inline

Get algorithm name.

◆ sign()

std::string jwt::algorithm::none::sign ( const std::string &  ,
std::error_code &  ec 
) const
inline

Return an empty string.

◆ 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: