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
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::WebToken const mRawToken;
20 ::std::unique_ptr<::UnverifiedCertificate> mParentUnverifiedCertificate;
21 // NOLINTEND
22
23public:
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
35
36 MCAPI void addToChain(::Json::Value& chain) const;
37
38 MCAPI ::std::string getIdentityPublicKey() const;
39
40 MCAPI ::std::string toString() const;
41
42 MCAPI ::std::unique_ptr<::Certificate> verify(::std::vector<::std::string> const& trustedKeys) const;
43
45 // NOLINTEND
46
47public:
48 // static functions
49 // NOLINTBEGIN
50 MCAPI static ::UnverifiedCertificate fromString(::std::string const& input);
51 // NOLINTEND
52
53public:
54 // constructor thunks
55 // NOLINTBEGIN
56 MCAPI void* $ctor(::UnverifiedCertificate const& other);
57 // NOLINTEND
58
59public:
60 // destructor thunk
61 // NOLINTBEGIN
62 MCAPI void $dtor();
63 // NOLINTEND
64};
Definition Certificate.h:9
Definition Value.h:16
Definition UnverifiedCertificate.h:15
Definition WebToken.h:16