LeviLamina
Loading...
Searching...
No Matches
Certificate.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/certificates/UnverifiedCertificate.h"
5
6// auto generated inclusion list
7#include "mc/certificates/UnverifiedCertificate.h"
8
9// auto generated forward declare list
10// clang-format off
12class WebToken;
13namespace Json { class Value; }
14// clang-format on
15
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::UnverifiedCertificate mUnverifiedCertificate;
21 ::std::unique_ptr<::Certificate> mParentCertificate;
22 bool mIsValid;
23 bool mIsSelfSigned;
24 // NOLINTEND
25
26public:
27 // member functions
28 // NOLINTBEGIN
29 MCAPI_C void addToEnd(::Certificate const& certificate);
30
31 MCAPI int64 getExpirationDate() const;
32
33 MCAPI ::std::string getIdentityPublicKey() const;
34
35 MCAPI int64 getNotBeforeDate() const;
36
37 MCAPI_C ::Certificate& getRootParentCertificate();
38
39 MCAPI bool validate(int64 currentTime, bool isSelfSigned, bool checkExpired);
40
41 MCAPI ~Certificate();
42 // NOLINTEND
43
44public:
45 // static functions
46 // NOLINTBEGIN
47 MCAPI_C static ::std::unique_ptr<::Certificate> addAuthorityToCertificate(
48 ::PrivateKeyManager& signer,
49 int64 notBeforeDate,
50 int64 expirationDate,
51 ::std::string const& identityPublicKey,
52 ::std::unique_ptr<::Certificate> certificate
53 );
54
55 MCAPI_C static ::std::unique_ptr<::WebToken> createWebToken(
56 ::PrivateKeyManager& signer,
57 int64 notBeforeDate,
58 int64 expirationDate,
59 ::std::string const& identityPublicKey,
60 bool isCertificateAuthority,
61 ::Json::Value const* extraData
62 );
63
64 MCAPI_C static ::std::unique_ptr<::Certificate> createWrappedCertificate(
65 ::PrivateKeyManager& signer,
66 int64 notBeforeDate,
67 int64 expirationDate,
68 ::std::string const& identityPublicKey,
69 bool isCertificateAuthority,
70 ::Json::Value const* extraData,
71 ::std::unique_ptr<::Certificate> parentCertificate
72 );
73 // NOLINTEND
74
75public:
76 // constructor thunks
77 // NOLINTBEGIN
78 MCAPI_C void* $ctor(::Certificate const& other);
79 // NOLINTEND
80
81public:
82 // destructor thunk
83 // NOLINTBEGIN
84 MCAPI void $dtor();
85 // NOLINTEND
86};
Definition Certificate.h:16
Definition Value.h:16
Definition PrivateKeyManager.h:9
Definition UnverifiedCertificate.h:15
Definition WebToken.h:16