PocketMine-MP 5.39.4 git-a2b7d660558310260c376d1eeaff549367b9fc6e
Loading...
Searching...
No Matches
pocketmine\network\mcpe\auth\AuthKeyProvider Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\auth\AuthKeyProvider:

Public Member Functions

 __construct (private readonly \Logger $logger, private readonly AsyncPool $asyncPool, private readonly int $keyRefreshIntervalSeconds=self::ALLOWED_REFRESH_INTERVAL)
 
 getKey (string $keyId)
 

Detailed Description

Definition at line 38 of file AuthKeyProvider.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\auth\AuthKeyProvider::__construct ( private readonly \Logger $logger,
private readonly AsyncPool $asyncPool,
private readonly int $keyRefreshIntervalSeconds = self::ALLOWED_REFRESH_INTERVAL )

Definition at line 48 of file AuthKeyProvider.php.

Member Function Documentation

◆ getKey()

pocketmine\network\mcpe\auth\AuthKeyProvider::getKey ( string $keyId)

Fetches the key for the given key ID. The promise will be resolved with an array of [issuer, pemPublicKey].

@phpstan-return Promise<array{string, string}>

Definition at line 60 of file AuthKeyProvider.php.


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