12 lines
312 B
PHP
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;
|
|
}
|