1#ifndef SOURCEMETA_CORE_JOSE_SIGN_H_
2#define SOURCEMETA_CORE_JOSE_SIGN_H_
4#ifndef SOURCEMETA_CORE_JOSE_EXPORT
5#include <sourcemeta/core/jose_export.h>
8#include <sourcemeta/core/jose_algorithm.h>
9#include <sourcemeta/core/jose_jwk_private.h>
11#include <sourcemeta/core/json.h>
17namespace sourcemeta::core {
37SOURCEMETA_CORE_JOSE_EXPORT
39 const std::string_view signing_input,
const JWKPrivate &key)
40 -> std::optional<std::string>;
63SOURCEMETA_CORE_JOSE_EXPORT
65 -> std::optional<std::string>;
SOURCEMETA_CORE_JOSE_EXPORT auto jwt_sign(const JSON &header, const JSON &payload, const JWKPrivate &key) -> std::optional< std::string >
JWSAlgorithm
Definition jose_algorithm.h:21
SOURCEMETA_CORE_JOSE_EXPORT auto jws_sign(const JWSAlgorithm algorithm, const std::string_view signing_input, const JWKPrivate &key) -> std::optional< std::string >