Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
orbit::jwt::SigningKey Struct Reference

The key a token is signed with. Set exactly one of secret and private_key_pem. More...

#include <JwtAuth.hpp>

Public Attributes

std::string secret
 
std::string private_key_pem
 
std::string kid
 If set, the "kid" header, so verifiers can pick the key (JWKS)
 

Detailed Description

The key a token is signed with. Set exactly one of secret and private_key_pem.

Member Data Documentation

◆ kid

std::string orbit::jwt::SigningKey::kid

If set, the "kid" header, so verifiers can pick the key (JWKS)

◆ private_key_pem

std::string orbit::jwt::SigningKey::private_key_pem

RS256 or ES256: a PEM private key ("-----BEGIN PRIVATE KEY-----"). As for verification, the key type decides the algorithm: RSA (>= 2048 bits) means RS256, EC P-256 means ES256.

◆ secret

std::string orbit::jwt::SigningKey::secret

HS256: HMAC-SHA256 key (use at least 32 random bytes)


The documentation for this struct was generated from the following file: