JWTXX
C++ library for JWT
Loading...
Searching...
No Matches
ios.h
Go to the documentation of this file.
1#pragma once
2
6
7#include "jwt.h"
8
9#include <ostream>
10
11namespace JWTXX
12{
13
19inline
20std::ostream& operator<<(std::ostream& stream, const Algorithm& alg)
21{
22 stream << algToString(alg);
23 return stream;
24}
25
32inline
33std::ostream& operator<<(std::ostream& stream, const Value& v)
34{
35 stream << v.toString();
36 return stream;
37}
38
39}
Represents a JSON value that can hold any JSON type.
Definition value.h:24
std::string toString() const
Converts the value to its JSON string representation.
Definition value.h:208
Classes, constants and functions to work with JWT.
All classes, functions and constants are here.
Definition error.h:6
Algorithm
JWT signature algorithms.
Definition jwt.h:32
std::string algToString(Algorithm alg) noexcept
Converts algorithm code into a string representation.
std::ostream & operator<<(std::ostream &stream, const Algorithm &alg)
Puts algorithm name to a stream.
Definition ios.h:20