userver: crypto::jwt::JoseHeader Struct Reference
Loading...
Searching...
No Matches
crypto::jwt::JoseHeader Struct Reference

#include <userver/crypto/jwt.hpp>

Detailed Description

JOSE header parameters for a compact signed JWT.

Definition at line 33 of file jwt.hpp.

Public Attributes

std::string algorithm
 Signing algorithm (alg).
std::optional< std::string > type {}
 Token media type (typ).
std::optional< std::string > content_type {}
 Payload media type (cty).
std::optional< std::string > key_id {}
std::unordered_map< std::string, formats::json::Value > extensions {}
 Additional noncritical parameters with their original JSON values.

Member Data Documentation

◆ algorithm

std::string crypto::jwt::JoseHeader::algorithm

Signing algorithm (alg).

Definition at line 34 of file jwt.hpp.

◆ content_type

std::optional<std::string> crypto::jwt::JoseHeader::content_type {}

Payload media type (cty).

Definition at line 36 of file jwt.hpp.

◆ extensions

std::unordered_map<std::string, formats::json::Value> crypto::jwt::JoseHeader::extensions {}

Additional noncritical parameters with their original JSON values.

Definition at line 39 of file jwt.hpp.

◆ key_id

std::optional<std::string> crypto::jwt::JoseHeader::key_id {}

Key identifier (kid).

Definition at line 37 of file jwt.hpp.

◆ type

std::optional<std::string> crypto::jwt::JoseHeader::type {}

Token media type (typ).

Definition at line 35 of file jwt.hpp.


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