28 std::optional<std::string>
kid = std::nullopt;
29 std::optional<std::vector<std::string>>
x5c = std::nullopt;
30 std::optional<std::string>
issuer = std::nullopt;
65 throw std::logic_error(fmt::format(
"Unknown curve {}", curve_id));
80 throw std::logic_error(fmt::format(
"Unknown JWK curve {}", jwk_curve));
103 throw std::logic_error(fmt::format(
"Unknown EdDSA curve {}", curve_id));
#define DECLARE_JSON_TYPE_WITH_BASE(TYPE, BASE)
Definition json.h:663
#define DECLARE_JSON_REQUIRED_FIELDS(TYPE,...)
Definition json.h:712
#define DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS(TYPE)
Definition json.h:688
#define DECLARE_JSON_OPTIONAL_FIELDS(TYPE,...)
Definition json.h:784
#define DECLARE_JSON_ENUM(TYPE,...)
Definition json.h:835
JsonWebKeyECCurve
Definition jwk.h:39
JsonWebKeyEdDSACurve
Definition jwk.h:85
JsonWebKeyType
Definition jwk.h:14
CurveID
Definition curve.h:18
@ SECP384R1
The SECP384R1 curve.
@ SECP256K1
The SECP256K1 curve.
@ CURVE25519
The CURVE25519 curve.
@ SECP256R1
The SECP256R1 curve.
bool operator==(const JsonWebKeyECPrivate &) const =default
std::string d
Definition jwk.h:120
std::string x
Definition jwk.h:110
JsonWebKeyECCurve crv
Definition jwk.h:109
std::string y
Definition jwk.h:111
bool operator==(const JsonWebKeyECPublic &) const =default
bool operator==(const JsonWebKeyEdDSAPrivate &) const =default
std::string d
Definition jwk.h:163
JsonWebKeyEdDSACurve crv
Definition jwk.h:153
std::string x
Definition jwk.h:154
bool operator==(const JsonWebKeyEdDSAPublic &) const =default
std::string q
Definition jwk.h:141
std::string qi
Definition jwk.h:144
std::string p
Definition jwk.h:140
bool operator==(const JsonWebKeyRSAPrivate &) const =default
std::string dq
Definition jwk.h:143
std::string dp
Definition jwk.h:142
std::string d
Definition jwk.h:139
bool operator==(const JsonWebKeyRSAPublic &) const =default
std::string e
Definition jwk.h:130
std::string n
Definition jwk.h:129
std::optional< std::string > kid
Definition jwk.h:28
std::optional< std::string > issuer
Definition jwk.h:30
JsonWebKeyType kty
Definition jwk.h:27
bool operator==(const JsonWebKey &) const =default
std::optional< std::vector< std::string > > x5c
Definition jwk.h:29