1#ifndef LIBFILEZILLA_JWS_HEADER
2#define LIBFILEZILLA_JWS_HEADER
11class logger_interface;
json parser/builder
Definition json.hpp:33
Abstract interface for logging strings.
Definition logger.hpp:51
Simple json parser/builder.
The namespace used by libfilezilla.
Definition apply.hpp:17
jwk_type
Algorithm of JWKs.
Definition jws.hpp:14
@ ecdsa
EC key type with P-256 as algorithm.
bool dispatch(event_base const &ev, F &&f)
Dispatch for simple_event<> based events to simple functors.
Definition event_handler.hpp:199
std::pair< json, json > create_jwk(jwk_type t=jwk_type::ecdsa)
Creates a JWK pair.
json jws_sign_flattened(json const &priv, json const &payload, json const &extra_protected={})
Create a JWS, with optional protected data.
@ pem
The provided data is in PEM format.