CCF
Loading...
Searching...
No Matches
users.h
Go to the documentation of this file.
1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the Apache 2.0 License.
3#pragma once
4
5#include "ccf/crypto/pem.h"
7#include "ccf/service/map.h"
8
9#include <nlohmann/json.hpp>
10
11namespace ccf
12{
13 struct NewUser
14 {
16 nlohmann::json user_data = nullptr;
17 };
21
23 {
26 nlohmann::json user_data = nullptr;
27 };
30
31 using UserCerts = ccf::kv::RawCopySerialisedMap<UserId, ccf::crypto::Pem>;
33
34 namespace Tables
35 {
36 static constexpr auto USER_CERTS = "public:ccf.gov.users.certs";
37 static constexpr auto USER_INFO = "public:ccf.gov.users.info";
38 }
39}
Definition pem.h:18
Definition map.h:30
#define DECLARE_JSON_REQUIRED_FIELDS(TYPE,...)
Definition json.h:714
#define DECLARE_JSON_TYPE(TYPE)
Definition json.h:663
#define DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS(TYPE)
Definition json.h:690
#define DECLARE_JSON_OPTIONAL_FIELDS(TYPE,...)
Definition json.h:786
Definition app_interface.h:14
Definition users.h:14
nlohmann::json user_data
Definition users.h:16
ccf::crypto::Pem cert
Definition users.h:15
Definition users.h:23