3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/threading/Async.h"
7#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
8#include "mc/platform/brstd/future.h"
16namespace Bedrock::Http {
struct Url; }
27 struct BlockingInitRecursiveContext {
36 BlockingInitRecursiveContext& operator=(BlockingInitRecursiveContext
const&);
37 BlockingInitRecursiveContext(BlockingInitRecursiveContext
const&);
38 BlockingInitRecursiveContext();
63 MinecraftServiceKeyManager& operator=(MinecraftServiceKeyManager
const&);
64 MinecraftServiceKeyManager(MinecraftServiceKeyManager
const&);
65 MinecraftServiceKeyManager();
70 virtual ~MinecraftServiceKeyManager() ;
77 ::std::unique_ptr<::IMinecraftServiceKeySource> keySource,
78 ::std::function<int64()> timeFn,
81 ::std::optional<::MinecraftServiceKeysMetadata>>(
::TaskGroup&, ::std::string
const&,
bool)> metadataFn,
83 ::std::unordered_map<::std::string, ::std::string>>>(
::TaskGroup&, ::std::string
const&,
bool)> keysFn
87 MCNAPI
void _blockingInitRecursive(
89 ::std::shared_ptr<::MinecraftServiceKeyManager::BlockingInitRecursiveContext>
context
93 MCNAPI ::Bedrock::Threading::Async<::MinecraftServiceKeyInfo>
_fullFetch(
bool highPriority);
95 MCNAPI
bool _saveMetadata(::std::optional<::MinecraftServiceKeysMetadata>
const& metadata);
100 MCNAPI ::brstd::future<bool> blockingInit();
114 ::std::unique_ptr<::IMinecraftServiceKeySource> keySource,
115 ::std::function<int64()> timeFn,
118 ::std::optional<::MinecraftServiceKeysMetadata>>(
::TaskGroup&, ::std::string
const&,
bool)> metadataFn,
120 ::std::unordered_map<::std::string, ::std::string>>>(
::TaskGroup&, ::std::string
const&,
bool)> keysFn
Definition EnableNonOwnerReferences.h:7
Definition IMinecraftServiceKeySource.h:14
MCAPI void setHostKey(::std::string const &hostKey)
MCAPI void _updateTrustedKeys()
MCAPI void * $ctor(::std::unique_ptr<::IMinecraftServiceKeySource > keySource, ::std::function< int64()> timeFn, ::std::function<::Bedrock::Threading::Async<::Bedrock::Http::Url >()> urlFn, ::std::function<::Bedrock::Threading::Async< ::std::optional<::MinecraftServiceKeysMetadata > >(::TaskGroup &, ::std::string const &, bool)> metadataFn, ::std::function<::Bedrock::Threading::Async<::std::optional< ::std::unordered_map<::std::string, ::std::string > > >(::TaskGroup &, ::std::string const &, bool)> keysFn)
MCAPI bool _saveMetadata(::std::optional<::MinecraftServiceKeysMetadata > const &metadata)
MCAPI MinecraftServiceKeyManager(::std::unique_ptr<::IMinecraftServiceKeySource > keySource, ::std::function< int64()> timeFn, ::std::function<::Bedrock::Threading::Async<::Bedrock::Http::Url >()> urlFn, ::std::function<::Bedrock::Threading::Async< ::std::optional<::MinecraftServiceKeysMetadata > >(::TaskGroup &, ::std::string const &, bool)> metadataFn, ::std::function<::Bedrock::Threading::Async<::std::optional< ::std::unordered_map<::std::string, ::std::string > > >(::TaskGroup &, ::std::string const &, bool)> keysFn)
MCAPI::MinecraftServiceKeyInfo getKeyInfo() const
static MCAPI void ** $vftable()
MCAPI ::Bedrock::Threading::Async<::MinecraftServiceKeyInfo > _fullFetch(bool highPriority)
MCAPI::std::string getKeyFromKeyId(::std::string const &kid) const
Definition TaskGroup.h:57
Definition MinecraftServiceKeyInfo.h:5
Definition MinecraftServiceKeyManager.h:27