Skip to content

AuthKeyProvider ​

class · pocketmine\network\mcpe\auth\AuthKeyProvider · source

Methods ​

__construct() ​

php
public function __construct(\Logger $logger, \pocketmine\scheduler\AsyncPool $asyncPool, int $keyRefreshIntervalSeconds = self::ALLOWED_REFRESH_INTERVAL)

getKey() ​

php
public function getKey(string $keyId) : \pocketmine\promise\Promise

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

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.