CoreFiles by mySites.guru
TokenBindingNotSupportedHandler.php27 lines, 690 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
a0fa8c1bcaa1425ab5000a3b7111135d
sha1
9a4a053c82454f2dab4082c82927d0eb4df79945
sha256
0321057ad58e5ed7fb8ab3d54fd98a8624b23b7bc3fbcb7bd372046cdc14694b
<?php

declare(strict_types=1);

namespace Webauthn\TokenBinding;

use Psr\Http\Message\ServerRequestInterface;
use Webauthn\Exception\InvalidDataException;

/**
 * @deprecated Since 4.3.0 and will be removed in 5.0.0
 */
final class TokenBindingNotSupportedHandler implements TokenBindingHandler
{
    public static function create(): self
    {
        return new self();
    }

    public function check(TokenBinding $tokenBinding, ServerRequestInterface $request): void
    {
        $tokenBinding->getStatus() !== TokenBinding::TOKEN_BINDING_STATUS_PRESENT || throw InvalidDataException::create(
            $tokenBinding,
            'Token binding not supported.'
        );
    }
}

The same content is in 155 releases, Joomla 5.0.0-alpha1 to 6.2.1-rc1. See them all, or every version of this file.