LeviLamina
Loading...
Searching...
No Matches
ServerConnectionAuthValidator.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/network/connection/DisconnectFailReason.h"
8
9// auto generated forward declare list
10// clang-format off
15// clang-format on
16
17class ServerConnectionAuthValidator {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 64, ::std::function<int64()>> mCurrentTimeFn;
22 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::MinecraftServiceKeyManager>> mMinecraftServiceKeys;
23 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mLegacyMultiplayerTokenTrustedKeys;
24 ::ll::TypedStorage<1, 1, bool> mAllowSelfSigned;
25 ::ll::TypedStorage<1, 1, bool> mAllowExpiredTokens;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 ServerConnectionAuthValidator();
31
32public:
33 // member functions
34 // NOLINTBEGIN
35 MCAPI ServerConnectionAuthValidator(
36 ::NetworkServerConfig const& networkServerConfig,
37 ::std::function<int64()> currentTimeFn,
38 ::Bedrock::NotNullNonOwnerPtr<::MinecraftServiceKeyManager> minecraftServiceKeys,
39 ::std::vector<::std::string> const& legacyMultiplayerTokenTrustedKeys
40 );
41
42 MCAPI ::std::variant<::PlayerAuthenticationInfo, ::Connection::DisconnectFailReason>
43 validate(::ConnectionRequest const& connectionRequest) const;
44 // NOLINTEND
45
46public:
47 // constructor thunks
48 // NOLINTBEGIN
49 MCAPI void* $ctor(
50 ::NetworkServerConfig const& networkServerConfig,
51 ::std::function<int64()> currentTimeFn,
52 ::Bedrock::NotNullNonOwnerPtr<::MinecraftServiceKeyManager> minecraftServiceKeys,
53 ::std::vector<::std::string> const& legacyMultiplayerTokenTrustedKeys
54 );
55 // NOLINTEND
56};
Definition ConnectionRequest.h:29
Definition MinecraftServiceKeyManager.h:18
Definition NetworkServerConfig.h:9
Definition PlayerAuthenticationInfo.h:8