Files
drmaterac.pl/modules/pshowsso/vendor/patrickbussmann/oauth2-apple/test/ext/KeyDumpSigner8.php
2025-11-20 16:34:30 +01:00

25 lines
472 B
PHP

<?php
namespace League\OAuth2\Client\Test;
use Lcobucci\JWT\Signer;
use Lcobucci\JWT\Signer\Key;
final class KeyDumpSigner implements Signer
{
public function algorithmId(): string
{
return 'keydump';
}
public function sign(string $payload, Key $key): string
{
return $key->contents();
}
public function verify(string $expected, string $payload, Key $key): bool
{
return $expected === $key->contents();
}
}