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 // prevent constructor by default
28 Certificate& operator=(Certificate const&);
30
31public:
32 // member functions
33 // NOLINTBEGIN
34 MCNAPI Certificate(::Certificate const& other);
35
36 MCNAPI int64 getExpirationDate() const;
37
38 MCNAPI ::std::string getIdentityPublicKey() const;
39
40 MCNAPI int64 getNotBeforeDate() const;
41
42 MCNAPI bool isCertificateAuthority() const;
43
44 MCNAPI bool validate(int64 currentTime, bool isSelfSigned, bool checkExpired);
45
46 MCNAPI ~Certificate();
47 // NOLINTEND
48
49public:
50 // static functions
51 // NOLINTBEGIN
52 MCNAPI static ::std::unique_ptr<::WebToken> createWebToken(
53 ::PrivateKeyManager& signer,
54 int64 notBeforeDate,
55 int64 expirationDate,
56 ::std::string const& identityPublicKey,
58 ::Json::Value const* extraData
59 );
60
61 MCNAPI static ::std::unique_ptr<::Certificate> createWrappedCertificate(
62 ::PrivateKeyManager& signer,
63 int64 notBeforeDate,
64 int64 expirationDate,
65 ::std::string const& identityPublicKey,
67 ::Json::Value const* extraData,
68 ::std::unique_ptr<::Certificate> parentCertificate
69 );
70 // NOLINTEND
71
72public:
73 // constructor thunks
74 // NOLINTBEGIN
75 MCNAPI void* $ctor(::Certificate const& other);
76 // NOLINTEND
77
78public:
79 // destructor thunk
80 // NOLINTBEGIN
81 MCNAPI void $dtor();
82 // NOLINTEND
83};
Definition Certificate.h:16
MCAPI::std::string getIdentityPublicKey() const
MCAPI int64 getNotBeforeDate() const
MCAPI int64 getExpirationDate() const
static MCAPI ::std::unique_ptr<::Certificate > createWrappedCertificate(::PrivateKeyManager &signer, int64 notBeforeDate, int64 expirationDate, ::std::string const &identityPublicKey, bool isCertificateAuthority, ::Json::Value const *extraData, ::std::unique_ptr<::Certificate > parentCertificate)
MCAPI ~Certificate()
MCAPI void * $ctor(::Certificate const &other)
static MCAPI ::std::unique_ptr<::WebToken > createWebToken(::PrivateKeyManager &signer, int64 notBeforeDate, int64 expirationDate, ::std::string const &identityPublicKey, bool isCertificateAuthority, ::Json::Value const *extraData)
MCAPI bool isCertificateAuthority() const
MCAPI bool validate(int64 currentTime, bool isSelfSigned, bool checkExpired)
MCAPI Certificate(::Certificate const &other)
MCAPI void $dtor()
Definition Value.h:16
Definition PrivateKeyManager.h:9
Definition UnverifiedCertificate.h:15
Definition WebToken.h:16