Goby3  3.1.5a
2024.05.23
jwt::algorithm::none Struct Reference

"none" algorithm. More...

#include <goby/util/thirdparty/jwt-cpp/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.

Definition at line 915 of file jwt.h.

Member Function Documentation

◆ name()

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

Get algorithm name.

Definition at line 942 of file jwt.h.

◆ sign()

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

Return an empty string.

Definition at line 920 of file jwt.h.

◆ 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

Definition at line 932 of file jwt.h.


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