Conscience Core
Classes | Namespaces | Macros | Functions
base.h File Reference
#include <algorithm>
#include <array>
#include <stdexcept>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  jwt::alphabet::base64
 valid list of character when working with Base64 More...
 
struct  jwt::alphabet::base64url
 valid list of character when working with Base64URL More...
 
struct  jwt::alphabet::helper::base64url_percent_encoding
 A General purpose base64url alphabet respecting the URI Case Normalization More...
 
struct  jwt::base::details::padding
 

Namespaces

 jwt
 JSON Web Token.
 
 jwt::alphabet
 character maps when encoding and decoding
 
 jwt::alphabet::helper
 
 jwt::base
 A collection of fellable functions for working with base64 and base64url.
 
 jwt::base::details
 

Macros

#define JWT_FALLTHROUGH
 

Functions

uint32_t jwt::alphabet::index (const std::array< char, 64 > &alphabet, char symbol)
 
padding jwt::base::details::count_padding (const std::string &base, const std::vector< std::string > &fills)
 
std::string jwt::base::details::encode (const std::string &bin, const std::array< char, 64 > &alphabet, const std::string &fill)
 
std::string jwt::base::details::decode (const std::string &base, const std::array< char, 64 > &alphabet, const std::vector< std::string > &fill)
 
std::string jwt::base::details::decode (const std::string &base, const std::array< char, 64 > &alphabet, const std::string &fill)
 
std::string jwt::base::details::pad (const std::string &base, const std::string &fill)
 
std::string jwt::base::details::trim (const std::string &base, const std::string &fill)
 
template<typename T >
std::string jwt::base::encode (const std::string &bin)
 
template<typename T >
std::string jwt::base::decode (const std::string &base)
 
template<typename T >
std::string jwt::base::pad (const std::string &base)
 
template<typename T >
std::string jwt::base::trim (const std::string &base)
 

Macro Definition Documentation

◆ JWT_FALLTHROUGH

#define JWT_FALLTHROUGH