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::JwtIssuerKeyPolicy
 
struct  ccf::JwtIssuerMetadata
 
struct  ccf::OpenIDJWKMetadata
 
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::JwtIssuers = ServiceMap< JwtIssuer, JwtIssuerMetadata >
 
using ccf::JwtPublicSigningKeys = ServiceMap< JwtKeyId, std::vector< OpenIDJWKMetadata > >
 
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 , ccf::SGX }
 

Functions

 ccf::DECLARE_JSON_TYPE (JwtIssuerKeyPolicy)
 
 ccf::DECLARE_JSON_REQUIRED_FIELDS (JwtIssuerKeyPolicy, sgx_claims)
 
 ccf::DECLARE_JSON_ENUM (JwtIssuerKeyFilter, {{JwtIssuerKeyFilter::All, "all"}, {JwtIssuerKeyFilter::SGX, "sgx"}})
 
 ccf::DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (JwtIssuerMetadata)
 
 ccf::DECLARE_JSON_REQUIRED_FIELDS (JwtIssuerMetadata, key_filter)
 
 ccf::DECLARE_JSON_OPTIONAL_FIELDS (JwtIssuerMetadata, key_policy, ca_cert_bundle_name, auto_refresh)
 
 ccf::DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (OpenIDJWKMetadata)
 
 ccf::DECLARE_JSON_REQUIRED_FIELDS (OpenIDJWKMetadata, cert, issuer)
 
 ccf::DECLARE_JSON_OPTIONAL_FIELDS (OpenIDJWKMetadata, constraint)