privateKey = $privateKey; $this->privateKeyPass = $privateKeyPass; $this->publicKey = $publicKey; } public function getAlgorithmId(): string { return 'ES256'; } public function getSigner(): Signer { return new Sha256(); } public function getPrivateKey(): Key { if ($this->loadedPrivateKey === null) { $this->loadedPrivateKey = new Key($this->privateKey, $this->privateKeyPass); } return $this->loadedPrivateKey; } public function getPublicKey(): Key { if ($this->loadedPublicKey === null) { $this->loadedPublicKey = new Key($this->publicKey); } return $this->loadedPublicKey; } }