1 #ifndef LIBFILEZILLA_JWS_HEADER
2 #define LIBFILEZILLA_JWS_HEADER
11 class logger_interface;
28 std::pair<json, json> FZ_PUBLIC_SYMBOL jwk_from_x509_privkey(std::string_view
const& data,
bool pem =
true, logger_interface * logger =
nullptr);
41 json FZ_PUBLIC_SYMBOL
jws_sign_flattened(json
const& priv, json
const& payload, json
const& extra_protected = {});
43 std::string FZ_PUBLIC_SYMBOL create_jwt(json
const& priv, json
const& payload, json extra_protected = {});
std::pair< json, json > create_jwk(jwk_type t=jwk_type::ecdsa)
Creates a JWK pair.
jwk_type
Algorithm of JWKs.
Definition: jws.hpp:14
Simple json parser/builder.
json jws_sign_flattened(json const &priv, json const &payload, json const &extra_protected={})
Create a JWS, with optional protected data.
The namespace used by libfilezilla.
Definition: apply.hpp:17
EC key type with P-256 as algorithm.