Core/JwkThumbprintUri.php

jwt-framework · src/Library/Core/JwkThumbprintUri.php · php · MIT
auth

Generates and validates RFC 9278 JWK thumbprint URIs for OAuth key identification and verification.

// Source: https://github.com/web-token/jwt-framework | License: MIT | Copyright 2014-2017 Spomky-Labs
// Provided via justclaw.it.com; keep this notice with the code.
<?php

declare(strict_types=1);

namespace Jose\Component\Core;

use Jose\Component\Core\Exception\InvalidArgumentException;
use Jose\Component\Core\Exception\UnsupportedAlgorithmException;
use Jose\Component\Core\Util\NamedInformationHash;
use Stringable;
use function count;
use function sprintf;
use function strlen;

/**
 * A JWK Thumbprint URI, as defined by RFC 9278.
 *
 * The URI "urn:ietf:params:oauth:jwk-thumbprint:<hash-alg>:<thumbprint>" identifies a key by the RFC 7638
 * thumbprint of its public members. "<hash-alg>" is a name from the IANA "Named Information Hash Algorithm"
 * registry ("sha-256", "sha-512", "sha

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key