libfilezilla
Loading...
Searching...
No Matches
Namespaces | Enumerations | Functions
jws.hpp File Reference

Functions to create JSON Web Keys (JWK) and JSON Web Signatures (JWS) More...

#include "json.hpp"
Include dependency graph for jws.hpp:

Go to the source code of this file.

Namespaces

namespace  fz
 The namespace used by libfilezilla.
 

Enumerations

enum class  jwk_type { ecdsa , rsa }
 Algorithm of JWKs. More...
 

Functions

std::pair< json, jsoncreate_jwk (jwk_type t=jwk_type::ecdsa)
 Creates a JWK pair.
 
std::pair< json, jsonjwk_from_x509_privkey (std::string_view const &data, bool pem=true, logger_interface *logger=nullptr)
 
json jws_sign_flattened (json const &priv, json const &payload, json const &extra_protected={})
 Create a JWS, with optional protected data.
 
std::string create_jwt (json const &priv, json const &payload, json extra_protected={})
 

Detailed Description

Functions to create JSON Web Keys (JWK) and JSON Web Signatures (JWS)