MediaWiki
master
JwtCodec.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Json
;
4
12
interface
JwtCodec
{
13
18
public
function
isEnabled
(): bool;
19
23
public
function
create
( array $claims ): string;
24
31
public
function
parse
(
string
$jwt ): array;
32
33
}
MediaWiki\Json\JwtCodec
A helper to read and write JWTs without having to depend on a specific library, and using central con...
Definition
JwtCodec.php:12
MediaWiki\Json\JwtCodec\create
create(array $claims)
Creates a JWT string with the given claims.
MediaWiki\Json\JwtCodec\isEnabled
isEnabled()
Whether the codec can be used (disabled means it hasn't been properly configured).
MediaWiki\Json\JwtCodec\parse
parse(string $jwt)
Parses and partially validates a JWT string, and returns the set of claim inside it.
MediaWiki\Json
Definition
ClockAdapter.php:3
includes
Json
JwtCodec.php
Generated on Thu Feb 12 2026 18:25:16 for MediaWiki by
1.10.0