LeviLamina
Loading...
Searching...
No Matches
UnverifiedCertificate.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/certificates/WebToken.h"
5
6// auto generated inclusion list
7#include "mc/certificates/WebToken.h"
8
9// auto generated forward declare list
10// clang-format off
11class Certificate;
12namespace Json { class Value; }
13// clang-format on
14
15class UnverifiedCertificate {
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::WebToken const mRawToken;
20 ::std::unique_ptr<::UnverifiedCertificate> mParentUnverifiedCertificate;
21 // NOLINTEND
22
23public:
24 UnverifiedCertificate(
25 ::WebToken const& rawToken,
26 ::std::unique_ptr<UnverifiedCertificate>&& parentUnverifiedCertificate
27 )
28 : mRawToken(rawToken),
29 mParentUnverifiedCertificate(std::move(parentUnverifiedCertificate)) {}
30
31public:
32 // member functions
33 // NOLINTBEGIN
34 MCAPI UnverifiedCertificate(::UnverifiedCertificate const& other);
35
36 MCAPI void addToChain(::Json::Value& chain) const;
37
38 MCAPI_C void addToEnd(::UnverifiedCertificate const& unverifiedCertificate);
39
40 MCAPI ::std::string getIdentityPublicKey() const;
41
42 MCAPI ::std::string toString() const;
43
44 MCAPI ::std::unique_ptr<::Certificate>
45 verify(::std::vector<::std::string> const& trustedKeys, int remainingDepth) const;
46
47 MCAPI ~UnverifiedCertificate();
48 // NOLINTEND
49
50public:
51 // static functions
52 // NOLINTBEGIN
53 MCAPI static ::UnverifiedCertificate fromString(::std::string const& input);
54 // NOLINTEND
55
56public:
57 // constructor thunks
58 // NOLINTBEGIN
59 MCAPI void* $ctor(::UnverifiedCertificate const& other);
60 // NOLINTEND
61
62public:
63 // destructor thunk
64 // NOLINTBEGIN
65 MCAPI void $dtor();
66 // NOLINTEND
67};
Definition Certificate.h:16
Definition Value.h:16
Definition WebToken.h:16