LeviLamina
Loading...
Searching...
No Matches
LegacyMultiplayerToken.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Certificate;
10namespace Json { class Value; }
11namespace mce { class UUID; }
12// clang-format on
13
14class LegacyMultiplayerToken {
15public:
16 // LegacyMultiplayerToken inner types define
17 enum class VerificationOptions : int {
18 Default = 0,
19 IgnoreTimestamp = 1,
20 };
21
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Certificate>> mCertificate;
26 // NOLINTEND
27
28#ifdef LL_PLAT_S
29#else // LL_PLAT_C
30public:
31 // prevent constructor by default
32 LegacyMultiplayerToken();
33
34#endif
35public:
36 // member functions
37 // NOLINTBEGIN
38#ifdef LL_PLAT_C
39 MCAPI LegacyMultiplayerToken(::LegacyMultiplayerToken const& other);
40#endif
41
42 MCAPI ::Json::Value _getExtraData(::std::string const& key, ::Json::Value const& defaultValue) const;
43
44 MCAPI ::mce::UUID getIdentity() const;
45
46 MCAPI ::std::string getIdentityName() const;
47
48 MCAPI ::PlayerAuthenticationInfo getTrustedInfo(bool trustSelfSigned) const;
49
50 MCAPI ::std::string getXuid(bool trustSelfSigned) const;
51
52#ifdef LL_PLAT_C
53 MCAPI ::LegacyMultiplayerToken const& operator=(::LegacyMultiplayerToken const& other);
54
55 MCAPI ::std::string toString() const;
56#endif
57
58 MCAPI ~LegacyMultiplayerToken();
59 // NOLINTEND
60
61public:
62 // static functions
63 // NOLINTBEGIN
64#ifdef LL_PLAT_C
65 MCAPI static ::LegacyMultiplayerToken createSelfSigned(
66 ::PrivateKeyManager& signer,
67 int64 creationDate,
68 int64 expirationDate,
69 ::mce::UUID const& identity,
70 ::std::string const& displayName,
71 ::std::string const& identityPublicKey,
72 ::Json::Value const* extraInfo
73 );
74
75 MCAPI static ::PlayerAuthenticationInfo trustTokenWeAreAbsolutelySureIsLocal(::LegacyMultiplayerToken const& token);
76#endif
77 // NOLINTEND
78
79public:
80 // constructor thunks
81 // NOLINTBEGIN
82#ifdef LL_PLAT_C
83 MCAPI void* $ctor(::LegacyMultiplayerToken const& other);
84#endif
85 // NOLINTEND
86
87public:
88 // destructor thunk
89 // NOLINTBEGIN
90 MCFOLD void $dtor();
91 // NOLINTEND
92};
Definition Certificate.h:15
Definition Value.h:16
Definition PrivateKeyManager.h:9
Definition UUID.h:7
Definition PlayerAuthenticationInfo.h:8