LeviLamina
Loading...
Searching...
No Matches
TrustStore.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/brstd/flat_set.h"
7
8// auto generated forward declare list
9// clang-format off
10class SecureStorage;
11// clang-format on
12
13class TrustStore {
14public:
15 // TrustStore inner types declare
16 // clang-format off
17 struct PinnedKeyStore;
18 // clang-format on
19
20 // TrustStore inner types define
21 struct PinnedKeyStore {
22 public:
23 // member variables
24 // NOLINTBEGIN
27 // NOLINTEND
28
29 public:
30 // prevent constructor by default
31 PinnedKeyStore& operator=(PinnedKeyStore const&);
32 PinnedKeyStore(PinnedKeyStore const&);
33 PinnedKeyStore();
34 };
35
36public:
37 // member variables
38 // NOLINTBEGIN
41 // NOLINTEND
42
43public:
44 // prevent constructor by default
45 TrustStore& operator=(TrustStore const&);
46 TrustStore(TrustStore const&);
47 TrustStore();
48
49public:
50 // member functions
51 // NOLINTBEGIN
52#ifdef LL_PLAT_C
53 MCNAPI explicit TrustStore(::std::unique_ptr<::SecureStorage> secureStorage);
54
55 MCNAPI void _loadPinnedKeys();
56
57 MCNAPI void _savePinnedKeys(::TrustStore::PinnedKeyStore const& keyStore);
58#endif
59 // NOLINTEND
60
61public:
62 // static functions
63 // NOLINTBEGIN
64#ifdef LL_PLAT_C
65 MCNAPI static bool _pinKey(::TrustStore::PinnedKeyStore& keyStore, ::std::string publicKey);
66#endif
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72#ifdef LL_PLAT_C
73 MCNAPI void* $ctor(::std::unique_ptr<::SecureStorage> secureStorage);
74#endif
75 // NOLINTEND
76};
Definition SecureStorage.h:10
Definition TrustStore.h:21
Definition Alias.h:14