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