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
28public:
29 // prevent constructor by default
30 LegacyMultiplayerToken();
31
32public:
33 // member functions
34 // NOLINTBEGIN
35 MCAPI_C LegacyMultiplayerToken(::LegacyMultiplayerToken const& other);
36
37 MCAPI ::Json::Value _getExtraData(::std::string const& key, ::Json::Value const& defaultValue) const;
38
39 MCAPI ::mce::UUID getIdentity() const;
40
41 MCAPI ::std::string getIdentityName() const;
42
43 MCAPI ::PlayerAuthenticationInfo getTrustedInfo(bool trustSelfSigned) const;
44
45 MCAPI ::std::string getXuid(bool trustSelfSigned) const;
46
47 MCAPI_C ::LegacyMultiplayerToken const& operator=(::LegacyMultiplayerToken const& other);
48
49 MCAPI_C ::std::string toString() const;
50
51 MCAPI ~LegacyMultiplayerToken();
52 // NOLINTEND
53
54public:
55 // static functions
56 // NOLINTBEGIN
57 MCAPI_C static ::LegacyMultiplayerToken createSelfSigned(
58 ::PrivateKeyManager& signer,
59 int64 creationDate,
60 int64 expirationDate,
61 ::mce::UUID const& identity,
62 ::std::string const& displayName,
63 ::std::string const& identityPublicKey,
64 ::Json::Value const* extraInfo
65 );
66
67 MCAPI_C static ::PlayerAuthenticationInfo
68 trustTokenWeAreAbsolutelySureIsLocal(::LegacyMultiplayerToken const& token);
69 // NOLINTEND
70
71public:
72 // constructor thunks
73 // NOLINTBEGIN
74 MCAPI_C void* $ctor(::LegacyMultiplayerToken const& other);
75 // NOLINTEND
76
77public:
78 // destructor thunk
79 // NOLINTBEGIN
80 MCFOLD void $dtor();
81 // NOLINTEND
82};
Definition Certificate.h:16
Definition Value.h:16
Definition PrivateKeyManager.h:9
Definition UUID.h:7
Definition PlayerAuthenticationInfo.h:8