CCF
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Enumerations | Functions
jwt.h File Reference
#include "ccf/crypto/jwk.h"
#include "ccf/ds/json.h"
#include "ccf/service/map.h"
#include <map>
#include <optional>
#include <string>

Go to the source code of this file.

Classes

struct  ccf::JwtIssuerMetadata
 
struct  ccf::OpenIDJWKMetadata
 
struct  ccf::OpenIDJWKMetadataLegacy
 
struct  ccf::JsonWebKeySet
 

Namespaces

namespace  ccf
 
namespace  ccf::Tables
 
namespace  ccf::Tables::Legacy
 

Typedefs

using ccf::JwtIssuer = std::string
 
using ccf::JwtKeyId = std::string
 
using ccf::Cert = std::vector< uint8_t >
 
using ccf::PublicKey = std::vector< uint8_t >
 
using ccf::JwtPublicSigningKeysMetadata = ServiceMap< JwtKeyId, std::vector< OpenIDJWKMetadata > >
 
using ccf::JwtPublicSigningKeysMetadataLegacy = ServiceMap< JwtKeyId, std::vector< OpenIDJWKMetadataLegacy > >
 
using ccf::JwtIssuers = ServiceMap< JwtIssuer, JwtIssuerMetadata >
 
using ccf::Tables::Legacy::JwtPublicSigningKeys = ccf::kv::RawCopySerialisedMap< JwtKeyId, Cert >
 
using ccf::Tables::Legacy::JwtPublicSigningKeyIssuer = ccf::kv::RawCopySerialisedMap< JwtKeyId, JwtIssuer >
 

Enumerations

enum class  ccf::JwtIssuerKeyFilter { ccf::All }
 

Functions

 ccf::DECLARE_JSON_ENUM (JwtIssuerKeyFilter, {{JwtIssuerKeyFilter::All, "all"}})
 
 ccf::DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (JwtIssuerMetadata)
 
 ccf::DECLARE_JSON_REQUIRED_FIELDS (JwtIssuerMetadata)
 
 ccf::DECLARE_JSON_OPTIONAL_FIELDS (JwtIssuerMetadata, ca_cert_bundle_name, auto_refresh)
 
 ccf::DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (OpenIDJWKMetadata)
 
 ccf::DECLARE_JSON_REQUIRED_FIELDS (OpenIDJWKMetadata, issuer, public_key)
 
 ccf::DECLARE_JSON_OPTIONAL_FIELDS (OpenIDJWKMetadata, constraint)
 
 ccf::DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (OpenIDJWKMetadataLegacy)
 
 ccf::DECLARE_JSON_REQUIRED_FIELDS (OpenIDJWKMetadataLegacy, issuer, cert)
 
 ccf::DECLARE_JSON_OPTIONAL_FIELDS (OpenIDJWKMetadataLegacy, constraint)