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() ;
79 ::std::unique_ptr<::IMinecraftServiceKeySource> keySource,
80 ::std::function<int64()> timeFn,
83 ::std::optional<::MinecraftServiceKeysMetadata>>(
::TaskGroup&, ::std::string
const&,
bool)> metadataFn,
85 ::std::unordered_map<::std::string, ::std::string>>>(
::TaskGroup&, ::std::string
const&,
bool)> keysFn
89 MCNAPI
void _blockingInitRecursive(
91 ::std::shared_ptr<::MinecraftServiceKeyManager::BlockingInitRecursiveContext>
context
95 MCNAPI ::Bedrock::Threading::Async<::MinecraftServiceKeyInfo>
_fastFetch(
bool highPriority);
97 MCNAPI ::Bedrock::Threading::Async<::MinecraftServiceKeyInfo>
_fullFetch(
bool highPriority);
99 MCNAPI
bool _saveMetadata(::std::optional<::MinecraftServiceKeysMetadata>
const& metadata);
104 MCNAPI ::brstd::future<bool> blockingInit();
129 MCNAPI
void*
$ctor(::std::unique_ptr<::IMinecraftServiceKeySource> keySource);
132 ::std::unique_ptr<::IMinecraftServiceKeySource> keySource,
133 ::std::function<int64()> timeFn,
136 ::std::optional<::MinecraftServiceKeysMetadata>>(
::TaskGroup&, ::std::string
const&,
bool)> metadataFn,
138 ::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 ::Bedrock::Threading::Async<::MinecraftServiceKeyInfo > getKeysIfWeDontAlreadyHaveThem()
MCAPI void _updateTrustedKeys()
MCAPI void * $ctor(::std::unique_ptr<::IMinecraftServiceKeySource > keySource)
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 MinecraftServiceKeyManager(::std::unique_ptr<::IMinecraftServiceKeySource > keySource)
MCAPI::std::string const & getIssuer() const
MCAPI::MinecraftServiceKeyInfo getKeyInfo() const
static MCAPI void ** $vftable()
MCAPI ::Bedrock::Threading::Async<::MinecraftServiceKeyInfo > _fastFetch(bool highPriority)
MCAPI ::Bedrock::Threading::Async<::MinecraftServiceKeyInfo > _fullFetch(bool highPriority)
MCAPI::std::string getKeyFromKeyId(::std::string const &kid) const
MCAPI int64 getRoughTimeCorrectionSeconds() const
MCAPI bool hasRetrievedTrustedKeys() const
Definition TaskGroup.h:55
Definition MinecraftServiceKeyInfo.h:5
Definition MinecraftServiceKeyManager.h:27