PocketMine-MP 5.39.3 git-9a46a8bd745880ddf8eebaf28cda326bb97d2efa
Loading...
Searching...
No Matches
pocketmine\network\mcpe\auth\ProcessLegacyLoginTask Class Reference
+ Inheritance diagram for pocketmine\network\mcpe\auth\ProcessLegacyLoginTask:
+ Collaboration diagram for pocketmine\network\mcpe\auth\ProcessLegacyLoginTask:

Public Member Functions

 __construct (array $chainJwts, private string $clientDataJwt, private ?string $rootAuthKeyDer, private bool $authRequired, \Closure $onCompletion)
 
 getResult ()
 
 hasResult ()
 
 isFinished ()
 
 isSubmitted ()
 
 onCompletion ()
 
 onRun ()
 
 run ()
 
 setResult (mixed $result)
 
 setSubmitted ()
 

Public Attributes

const LEGACY_MOJANG_ROOT_PUBLIC_KEY = "MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAECRXueJeTDqNRRgJi/vlRufByu/2G0i2Ebt6YMar5QX/R0DIIyrJMcUpruK4QveTfJSTp3Shlq4Gk34cD/4GUWwkv0DVuzeuB+tXija7HBxii03NHDbPAD0AKnLr2wdAp"
 

Protected Member Functions

 fetchLocal (string $key)
 
 reallyDestruct ()
 
 storeLocal (string $key, mixed $complexData)
 

Detailed Description

Definition at line 35 of file ProcessLegacyLoginTask.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\auth\ProcessLegacyLoginTask::__construct ( array $chainJwts,
private string $clientDataJwt,
private ?string $rootAuthKeyDer,
private bool $authRequired,
\Closure $onCompletion )
Parameters
string[]$chainJwts@phpstan-param \Closure(bool $isAuthenticated, bool $authRequired, Translatable|string|null $error, ?string $clientPublicKey) : void $onCompletion

Definition at line 63 of file ProcessLegacyLoginTask.php.

References pocketmine\scheduler\AsyncTask\storeLocal().

+ Here is the call graph for this function:

Member Function Documentation

◆ fetchLocal()

pocketmine\scheduler\AsyncTask::fetchLocal ( string $key)
protectedinherited

Retrieves data stored in thread-local storage.

If you used storeLocal(), you can use this on the same thread to fetch data stored. This should be used during onProgressUpdate() and onCompletion() to fetch thread-local data stored on the parent thread.

Returns
mixed
Exceptions

InvalidArgumentException if no data were stored by this AsyncTask instance.

Definition at line 165 of file AsyncTask.php.

◆ getResult()

pocketmine\scheduler\AsyncTask::getResult ( )
inherited
Returns
mixed

Definition at line 105 of file AsyncTask.php.

◆ hasResult()

pocketmine\scheduler\AsyncTask::hasResult ( )
inherited

Definition at line 98 of file AsyncTask.php.

◆ isFinished()

pocketmine\scheduler\AsyncTask::isFinished ( )
inherited

Returns whether this task has finished executing, whether successfully or not. This differs from isRunning() because it is not true prior to task execution.

Definition at line 94 of file AsyncTask.php.

◆ isSubmitted()

pocketmine\scheduler\AsyncTask::isSubmitted ( )
inherited

Definition at line 120 of file AsyncTask.php.

◆ onCompletion()

pocketmine\network\mcpe\auth\ProcessLegacyLoginTask::onCompletion ( )

Actions to execute when completed (on main thread) Implement this if you want to handle the data in your AsyncTask after it has been processed

Reimplemented from pocketmine\scheduler\AsyncTask.

Definition at line 113 of file ProcessLegacyLoginTask.php.

◆ onRun()

pocketmine\network\mcpe\auth\ProcessLegacyLoginTask::onRun ( )

Actions to execute when run

Reimplemented from pocketmine\scheduler\AsyncTask.

Definition at line 74 of file ProcessLegacyLoginTask.php.

◆ reallyDestruct()

pocketmine\scheduler\AsyncTask::reallyDestruct ( )
protectedinherited

Override this to do normal __destruct() cleanup from a child class.

Definition at line 182 of file AsyncTask.php.

◆ run()

pocketmine\scheduler\AsyncTask::run ( )
inherited

Definition at line 73 of file AsyncTask.php.

◆ setResult()

pocketmine\scheduler\AsyncTask::setResult ( mixed $result)
inherited

Definition at line 112 of file AsyncTask.php.

◆ setSubmitted()

pocketmine\scheduler\AsyncTask::setSubmitted ( )
inherited

Definition at line 116 of file AsyncTask.php.

◆ storeLocal()

pocketmine\scheduler\AsyncTask::storeLocal ( string $key,
mixed $complexData )
protectedinherited

Saves mixed data in thread-local storage. Data stored using this storage is only accessible from the thread it was stored on. Data stored using this method will not be serialized. This can be used to store references to variables which you need later on on the same thread, but not others.

For example, plugin references could be stored in the constructor of the async task (which is called on the main thread) using this, and then fetched in onCompletion() (which is also called on the main thread), without them becoming serialized.

Scalar types can be stored directly in class properties instead of using this storage.

Objects stored in this storage can be retrieved using fetchLocal() on the same thread that this method was called from.

Definition at line 151 of file AsyncTask.php.

Referenced by pocketmine\network\mcpe\auth\FetchAuthKeysTask\__construct(), pocketmine\network\mcpe\auth\ProcessLegacyLoginTask\__construct(), pocketmine\network\mcpe\auth\ProcessOpenIdLoginTask\__construct(), pocketmine\network\mcpe\ChunkRequestTask\__construct(), pocketmine\network\mcpe\encryption\PrepareEncryptionTask\__construct(), pocketmine\scheduler\BulkCurlTask\__construct(), pocketmine\scheduler\TimingsCollectionTask\__construct(), pocketmine\world\generator\PopulationTask\__construct(), and pocketmine\world\light\LightPopulationTask\__construct().

+ Here is the caller graph for this function:

Member Data Documentation

◆ LEGACY_MOJANG_ROOT_PUBLIC_KEY

const pocketmine\network\mcpe\auth\ProcessLegacyLoginTask::LEGACY_MOJANG_ROOT_PUBLIC_KEY = "MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAECRXueJeTDqNRRgJi/vlRufByu/2G0i2Ebt6YMar5QX/R0DIIyrJMcUpruK4QveTfJSTp3Shlq4Gk34cD/4GUWwkv0DVuzeuB+tXija7HBxii03NHDbPAD0AKnLr2wdAp"

New Mojang root auth key. Mojang notified third-party developers of this change prior to the release of 1.20.0. Expectations were that this would be used starting a "couple of weeks" after the release, but as of 2023-07-01, it has not yet been deployed.

Definition at line 43 of file ProcessLegacyLoginTask.php.


The documentation for this class was generated from the following file: