misuzu/src/OpenID/JWTKey.php
2025-02-25 02:30:24 +00:00

12 lines
312 B
PHP

<?php
namespace Misuzu\OpenID;
use RuntimeException;
interface JWTKey {
public string $algo { get; }
/** @throws RuntimeException if this instance can only be used for verification */
public function sign(string $data): string;
public function verify(string $data, string $signature): bool;
}