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::hs256 Struct Reference

#include <jwt.h>

Inheritance diagram for jwt::algorithm::hs256:
[legend]

Public Member Functions

 hs256 (std::string key)
 
- Public Member Functions inherited from jwt::algorithm::hmacsha
 hmacsha (std::string key, const EVP_MD *(*md)(), std::string name)
 
std::string sign (const std::string &data, std::error_code &ec) const
 
void verify (const std::string &data, const std::string &signature, std::error_code &ec) const
 
std::string name () const
 

Detailed Description

HS256 algorithm

Constructor & Destructor Documentation

◆ hs256()

jwt::algorithm::hs256::hs256 ( std::string key)
inlineexplicit

Construct new instance of algorithm

Parameters
keyHMAC signing key

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