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/certificates/WebToken.h"
7#include "mc/options/DiscoveryEnvironment.h"
8
9// auto generated forward declare list
10// clang-format off
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<1, 1, bool> mIsSelfSigned;
22 ::ll::TypedStorage<1, 1, bool> mIsValid;
23 ::ll::TypedStorage<8, 128, ::WebToken> mRawToken;
24 // NOLINTEND
25
26public:
27 // member functions
28 // NOLINTBEGIN
29 MCAPI ::std::optional<::DiscoveryEnvironment> getIssuerEnvironment() const;
30
31 MCAPI ::PlayerAuthenticationInfo getTrustedInfo() const;
32
33 MCAPI ::std::string getXuid(bool trustSelfSigned) const;
34
35 MCAPI ~GameServerToken();
36 // NOLINTEND
37
38public:
39 // static functions
40 // NOLINTBEGIN
41 MCAPI static bool _validate(
42 ::WebToken const& token,
43 ::MinecraftServiceKeyManager const& keyManager,
44 int64 currentTime,
45 bool checkExpiration
46 );
47
48 MCAPI static bool _validateSelfSigned(::WebToken const& token, int64 currentTime, bool checkExpiration);
49
50 MCAPI static ::GameServerToken
51 createAndValidateSelfSigned(::RawGameServerToken const& rawToken, bool checkExpiration);
52
53 MCAPI_C static ::RawGameServerToken createSelfSigned(
54 ::PrivateKeyManager const& signer,
55 int64 expirationDate,
56 ::std::string const& keyId,
57 ::PlayerAuthenticationInfo const& claims
58 );
59 // NOLINTEND
60
61public:
62 // destructor thunk
63 // NOLINTBEGIN
64 MCAPI void $dtor();
65 // NOLINTEND
66};
Definition GameServerToken.h:17
Definition MinecraftServiceKeyManager.h:18
Definition PrivateKeyManager.h:9
Definition WebToken.h:16
Definition PlayerAuthenticationInfo.h:8
Definition RawGameServerToken.h:8