JWT-CPP v0.7.0
A header only library for creating and validating JSON Web Tokens (JWT) in C++
|
#include <jwt.h>
Public Member Functions | |
verify_context (date ctime, const decoded_jwt< json_traits > &j, size_t l) | |
basic_claim< json_traits > | get_claim (bool in_header, std::error_code &ec) const |
Helper method to get a claim from the jwt in this context. | |
basic_claim< json_traits > | get_claim (bool in_header, json::type t, std::error_code &ec) const |
basic_claim< json_traits > | get_claim (std::error_code &ec) const |
Helper method to get a payload claim from the jwt. | |
basic_claim< json_traits > | get_claim (json::type t, std::error_code &ec) const |
Helper method to get a payload claim of a specific type from the jwt. | |
Public Attributes | |
date | current_time |
Current time, retrieved from the verifiers clock and cached for performance and consistency. | |
const decoded_jwt< json_traits > & | jwt |
The jwt passed to the verifier. | |
size_t | default_leeway {0} |
The configured default leeway for this verification. | |
json_traits::string_type | claim_key {} |
The claim key to apply this comparison on. | |
This is the base container which holds the token that need to be verified
|
inline |
Helper method to get a claim of a specific type from the jwt in this context
in_header | check JWT header or payload sections |
t | the expected type of the claim |
ec | std::error_code which will indicate if any error occure |
|
inline |
Helper method to get a claim from the jwt in this context.
in_header | check JWT header or payload sections |
ec | std::error_code which will indicate if any error occure |
|
inline |
Helper method to get a payload claim of a specific type from the jwt.
t | the expected type of the claim |
ec | std::error_code which will indicate if any error occure |
|
inline |
Helper method to get a payload claim from the jwt.
ec | std::error_code which will indicate if any error occure |