LeviLamina
Loading...
Searching...
No Matches
GameServerToken.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/certificates/WebToken.h"
7#include "mc/options/DiscoveryEnvironment.h"
8
9// auto generated forward declare list
10// clang-format off
15namespace mce { class UUID; }
16// clang-format on
17
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<1, 1, bool> mIsSelfSigned;
23 ::ll::TypedStorage<1, 1, bool> mIsValid;
24 ::ll::TypedStorage<8, 128, ::WebToken> mRawToken;
25 // NOLINTEND
26
27public:
28 // member functions
29 // NOLINTBEGIN
30 MCAPI ::std::optional<::DiscoveryEnvironment> getIssuerEnvironment() const;
31
32 MCAPI ::mce::UUID getLegacyUuid() const;
33
34 MCAPI ::PlayerAuthenticationInfo getTrustedInfo() const;
35
36 MCAPI ::std::string getXuid() const;
37
38 MCAPI ~GameServerToken();
39 // NOLINTEND
40
41public:
42 // static functions
43 // NOLINTBEGIN
44 MCAPI static bool _validate(
45 ::WebToken const& token,
46 ::MinecraftServiceKeyManager const& keyManager,
47 int64 currentTime,
48 bool checkExpiration
49 );
50
51 MCAPI static bool _validateSelfSigned(::WebToken const& token, int64 currentTime, bool checkExpiration);
52
53 MCAPI static ::GameServerToken
54 createAndValidateSelfSigned(::RawGameServerToken const& rawToken, int64 currentTime, bool checkExpiration);
55
56#ifdef LL_PLAT_C
57 MCAPI static ::RawGameServerToken createLocal(
58 ::PrivateKeyManager const& signer,
59 int64 expirationDate,
60 ::std::string const& keyId,
61 ::PlayerAuthenticationInfo const& claims
62 );
63#endif
64 // NOLINTEND
65
66public:
67 // destructor thunk
68 // NOLINTBEGIN
69 MCAPI void $dtor();
70 // NOLINTEND
71};
Definition GameServerToken.h:18
Definition MinecraftServiceKeyManager.h:19
Definition PrivateKeyManager.h:9
Definition WebToken.h:16
Definition UUID.h:7
Definition PlayerAuthenticationInfo.h:8
Definition RawGameServerToken.h:8